Double.Ceiling

Syntax

Ceiling(Value: Double): Double;

Parameters

Value. The real value that must be rounded.

Description

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

Comments

Executing the example results in a real value.

Example

Sub UserProc;
Var
    D: Double;
Begin
    D := 234.234;
    D := Double.Ceiling(D);
End Sub UserProc;

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

See also:

Double