IMath.Odd

Syntax

Odd(Value: Double): Integer;

Parameters

Value. Rounded value.

Description

The Odd method rounds the specified value to the nearest odd integer.

Comments

Available values range for input parameter [MinInteger; MaxInteger]. MinInteger = -231, MaxInteger = 231 - 1.

Example

To execute the example, add a link to the MathFin system assembly.

Sub UserProc;
Var
    r: Integer;
Begin
    r := Math.Odd(1.5);
    Debug.WriteLine(r);
End Sub UserProc;

After executing the example the console window displays the result of rounding to the nearest uneven integer equal to 3.

See also:

IMath