SGN( number )
Returns the sign of the argument ‘number’, +1 for positive numbers, 0 for 0, and -1 for negative numbers.
PRINT SGN(123)
1
PRINT SGN(-123)
-1
PRINT SGN(0)
0
See also:
ABS
CINT
EXP
FIX
INT
Applies to:
CGCOLORMAX
CGMMSTICK
CGMICROBOARD
CGMICROMITE
Leave a Reply