[Contents] · [Home] · [Mail]

SALIERI Language - floor

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

See also: ceil, abs,


[Contents] · [Home] · [Mail]
© sic!systems, page frame designed by hh; this page has been automatically generated from the SALIERI Documentation Database.