Ceil

From SCAR Divi Manual
Revision as of 19:56, 30 August 2011 by Freddy (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

function Ceil(const X: Extended): Integer;

Availability

SCAR Divi 3.00 > Current

Description

This function rounds a value given by X up.

Example

begin
  WriteLn(Ceil(1.1));   
  WriteLn(Ceil(1.5));
  WriteLn(Ceil(1.9));
end.

Output:

2
2
2

See Also