Download manual
Transcript
SGN - Mathematical Operator Function Return the sign of expression Syntax SGN(expression) Usage Will return a value of +1 if expression is greater than zero, zero if expression is equal to zero, and -1 if expression is less than zero. Example PRINT SGN(52) 1 PRINT SGN(0) 0 STATEMENTS PRINT SGN(-8) -1 4.91