AKD BASIC User Guide | 5 AKD BASIC Functions
5.23 SGN()
General Information
Type Function
Description Returns the sign of a numeric expression.
Instructions
X is any numeric expression
Example
Print SGN(-33) 'prints -1
Print SGN(0) 'prints 0
Print SGN(45.77) 'prints 1
Kollmorgen™ | March 30, 2012 86