Sgn Function
Language Items List
Definition:
Evaluates a numeric expression and returns an integer that indicates the sign.
Syntax:
Sgn(number)
Syntax Description
number Any valid numeric expression.
Details:
The sign of number determines the value returned by the Sgn function, as shown in the following
table:
If number Then Sgn (number)
is... returns...
> 0 1
= 0 0
< 0 -1