SignI(Value: Integer): Integer;
Value. Integer number.
The SignI method returns the sign of an integer.
It can return the following values:
1 - if a number is positive.
0 - if a number is equal to 0.
-1 - if a number is negative.
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.
See also: