SGN

Return sign

@SGN(expression)

Description

Returns the sign of expression as an integer: -1 if the argument is negative, 0 if zero, 1 if positive.

Example

IF @SGN(0.5) ; is input positive?