NAME
ABS, SGN Functions
SYNOPSIS
ABS(numeric-expression)
SGN(numeric-expression)
o numeric-expression Any numeric expression.
DESCRIPTION
ABS returns the absolute value of a number.
SGN returns a value indicating the sign of a numeric expression (1 if the
expression is positive, 0 if it is zero, or -1 if it is negative).
Example:
PRINT ABS(45.5 - 100!) 'Output is: 54.5
PRINT SGN(1), SGN(-1), SGN(0) 'Output is: 1 -1 0
SEE ALSO
none