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