Double.Floor

Syntax

Floor(Value: Double): Double;

Parameters

Value - real value that must be rounded.

Description

The Floor method rounds down a real value passed as the Value input parameter to an integer. Executing the example results in a real value.

Example

Sub Main;

Var

D:Double;

Begin

D:=234.734;

D:=Double.Floor(D);

End Sub Main;

After executing the example the "D" variable will contain the value 234.

See also:

Double