SGN
Returns the sign of a number.
The result is -1 for negative numbers, 0 for 0 and 1 for positive numbers.
Parameters and results
valueINTEGER|FLOAT: the number- result
resultINTEGER: -1, 0 or 1
Example
c0de
CALL c0de/math/SGN
PARAMETER value balance ;
RESULT result sign