floor | real-to-integer function |
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 and round functions.
|