round()
Purpose
Round a floating point number
Description
Round a floating point number to the nearest integer
Syntax
result = round( value )
Arguments
value float value to be rounded
result nearest integer result (0.5 rounds up to 1)
Example
print( round( 3.1415926 ) ) // prints 3.000000
print( round( 3.5 ) ) // prints 4.000000
update()
sleep( 3 )
Associated Commands