Double.CeilingInt

Syntax

CeilingInt(Value: Double): Integer;

Parameters

Value. Real value that must be rounded.

Description

The CeilingInt method rounds up a real number passed as the Value input parameter to an integer.

Comments

Executing the example results in an integer value.

Example

Sub UserProc;
Var
    D: Double;
    I: Integer;
Begin
    D := 234.234;
    I := Double.CeilingInt(D);
End Sub UserProc;

After executing the example the "i" variable contains the 235 value.

See also:

Double