Double.FloorInt

Syntax

FloorInt(Value: Double): Integer;

Parameters

Value. The real value that must be rounded.

Description

The FloorInt method rounds down a real value 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.734;
    I := Double.FloorInt(D);
End Sub UserProc;

After executing the example the "I" variable contains the 234 value.

See also:

Double