MAINSAIL Language Manual, Section 32.7

previous   next   top   contents   index   framed top   this page unframed


32.7. ceiling

Figure 32–6. ceiling (GENERIC)
INTEGER
PROCEDURE   ceiling     (REAL v);

LONG INTEGER
PROCEDURE   ceiling     (LONG REAL v);

ceiling returns the smallest (LONG) INTEGER greater than or equal to v.

See Figure 35–16 for a table contrasting ceiling, cvi, floor, and truncate.

Example 32–7. Use of ceiling
ceiling(10.5)  =  11
ceiling(-10.5) = -10


previous   next   top   contents   index   framed top   this page unframed

MAINSAIL Language Manual, Section 32.7