[Contents] · [Home] · [Mail]

SALIERI Language - ceil

ceil: real -> integer

Call syntax:

ceil returns the minimal integer which is greater than or equal to the parameter value aReal. ceil is used for converting real numbers into integer values. It can also be applied to integer arguments, which it returns unmodified.

> write(ceil(1.2)," ", ceil(1.7))
2 2
> write(ceil(-1.2)," ", ceil(-1.7))
-1 -1
> write(ceil(1.0)," ", ceil(1))
1 1

See also: floor, abs,

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