Skip to content
Tristan Hume edited this page Apr 23, 2012 · 2 revisions

#floor

##Syntax floor ( r : real ) : int

##Description Returns the largest integer that is less than or equal to r.

##Details The floor function is used to convert a real number to an integer. The result is the largest integer that is less than or equal to r. In other words, the floor function rounds down to the nearest integer. For example, floor (3) is 3, floor (2.75) is 2 and floor (-8.43) is -9.

##See also ceil.html and round.html functions.

Clone this wiki locally