Rounding on UI but not the actual value

When I resized a part, it said “6, 18, 2” But when printed it was “17.999969482421875”, I cannot put studio bugs so I am putting it here instead

Can you show screenshots if possible ?

Then try doing that :

print(math.floor(value here + 0.5))

This is usually due to floating point arithmatic.