floor()
Purpose
Returns the floor of a real number
Description
Returns the greatest integer less than or equal to the real number specified e.g. floor(2.4) = 2
Syntax
result = floor( number )
Arguments
number A real number
result The floor of number
Example
x = 2.4
// Prints 2
print( floor( x ) )
update()
sleep( 3 )
Associated Commands