Difference between revisions of "Ceil"

From SCAR Divi Manual
Jump to: navigation, search
 
Line 1: Line 1:
 
==Definition==
 
==Definition==
 
<source lang="scar" lines="false">
 
<source lang="scar" lines="false">
function Ceil(X: Extended): Integer;
+
function Ceil(const X: Extended): Integer;
 
</source>
 
</source>
  

Latest revision as of 19:56, 30 August 2011

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