SIGN function

The SIGN numeric function tells you whether a given number is positive, negative, or zero.

Syntax

Read syntax diagramSkip visual syntax diagram SIGN (NumericExpression)

The SIGN function returns -1, 0, or +1 when the NumericExpression value is negative, zero, or positive respectively. The parameter can be any built-in numeric data type and the result is of the same type as the parameter. If the parameter is NULL, the result is NULL