SGNMATH FunctionWindows/Unix

A math function that indicates the sign of a numeric expression.

Syntax: SGN(numeric-expression)
A% = SGN(-123)   '-- Returns -1

Details:
If numeric-expression is positive, SGN returns +1.
If numeric-expression is zero, SGN returns 0.
If numeric-expression is negative, SGN returns -1.