IMath.Sign

Syntax

Sign(Value: Double): Integer;

Parameters

Value. Real number.

Description

The Sign method returns the sign of a real number.

Comments

Parameter value cannot be empty.

It can return the following values:

Example

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

Sub UserProc;
Var
    r: Double;
Begin
    r := Math.Sign(10);
    Debug.WriteLine(r);
End Sub UserProc;

After executing the example the console window displays the sign of the set number 1.

See also:

IMath