SGN

Returns the arithmetic sign of an expression.
 
 SGN (numeric-expression)
 
Usage:
Xsgn=SGN(X)
Discriminate=SGN(B*B-4*A*C)
Example: SGN.BAS
Description:
SGN returns a value of 1 if the numeric expression is positive, a value of -1 if it is negative and 0 if it is zero.
See Also: