IMath.SignI

Fore Syntax

SignI(Value: Integer): Integer;

Fore.NET Syntax

SignI(Value: integer): integer;

Parameters

Value. Integer number.

Description

The SignI method returns the sign of an integer.

Comments

It can return the following values:

Fore Example

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

Sub UserProc;
Var
    r: Integer;
Begin
    r := Math.SignI(-10);
    Debug.WriteLine(r);
End Sub UserProc;

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

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example.

Imports Prognoz.Platform.Interop.MathFin;

Public Shared Sub Main(Params: StartParams);
Var
    r: Integer;
    Math: MathClass = New MathClass();
Begin
    r := Math.SignI(-10);
    System.Diagnostics.Debug.WriteLine(r);
End Sub;

See also:

IMath