Purpose
Round
a number to the next smallest integer.
Synopsis
function floor(r:real):integer
Argument
r
|
Real number to be rounded
|
Return value
Rounded value.
Example
In the following,
i takes the value 5,
j the value -7, and
k the value 12:
i := floor(5.6)
j := floor(-6.7)
k := floor(12.3)
Related topics