FloorInt(Value: Double): Integer;
Value - real value that must be rounded.
The FloorInt method rounds down a real value passed as the Value input parameter to an integer. Executing the example results in an integer value.
Sub Main;
Var
D:Double;
I:Integer;
Begin
D := 234.734;
I := Double.FloorInt(D);
End Sub Main;
After executing the example the "I" variable will contain the value 234.
See also: