SIGN function

The SIGN function returns an indicator of the sign of the argument.

Read syntax diagramSkip visual syntax diagram
SIGN Function

|--SIGN--(--expression--)---------------------------------------|

If the argument is less than zero, -1 is returned. If the argument equals zero, 0 is returned. If the argument is greater than zero, 1 is returned. The result returned is always an integer with one of these values.


Copyright© 2021 HCL Technologies Limited