rounding numbers

Blitz3D Forums/Blitz3D Beginners Area/rounding numbers

LostCargo(Posted 2003) [#1]
is there a way to round float numbers to a certain decimal place? i dont want to convert them to an int, but i only want 2 decimals of accuracy. ie 1.25 rather than 1.2499999999323423232


Gabriel(Posted 2003) [#2]
Multiply by 100, convert to int and divide by 100?

Edit : Oh you don't want to convert to an integer. Sorry


LostCargo(Posted 2003) [#3]
yeah, that will work. good call. i was hoping for a native function that might work though. even if there was something that wasnt documented