SGN function
Purpose: SGN returns the sign of a number.
RetVal% = SGN(Number)
Parameters:
Return Value:
Example:
DIM RetVal% RetVal% = SGN(-123.456) PRINT RetVal%
DIM
=
SGN
(
-
123.456
)
PRINT
Result:
-1