SGN returns +1 if x is positive, or -1 if ix is negative, or 0 if x = 0
SGN
x
Syntax
SGN (x)
Parameters
x (decimal): any number
Remarks
Usable since script version 1.1 (Allplan 2012-1).