Type:
floor: real -> integer
Call syntax:
floor(aReal)
Description:
floor returns the maximal integer which is
less than or equal to aReal.
floor is used for converting
real numbers into integer values.
It can also be applied to integer arguments, which
it returns unmodified.
Example:
> write(floor(1.2), " ",floor(1.7))
1 1
> write(floor(-1.2), " ",floor(-1.7))
-2 -2
> write(floor(1.0), " ",floor(1))
1 1