CeilingInt(Value: Double): Integer;
Value - real value that must be rounded.
The CeilingInt method rounds up a real number 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.234;
I := Double.CeilingInt(D);
End Sub Main;
After executing the example the "i" variable will contain the value 235.
See also: