Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How To remove more 0.0153252 digets on a Velocity display in a textlabel?

while true do
	wait(0.25)
script.Parent.Text = game.Workspace.VehicleSeat.Velocity.X
end

I hate how it displays like 25.2562349856236892304643687436878476436 how can i get this down to only 25?

1 comment

0

C'mon, everyone loves precise numbers.

1 answer

✓ Accepted answer

math.floor

math.floor will round any number down, meaning 25.9 will be 25 and 25.5 will be 25.

However, math.roof will round any number up.

2 comments

0

Isn't math.round and math.floor the same?

0

math.round doesn't exist.

This discussion is preserved as it was. New answers, comments, and votes are closed.