Start of change

SIGN

The SIGN function returns +1, 0, or –1 depending on the sign of the argument.

The function type is integer.

Format

Read syntax diagramSkip visual syntax diagramFUNCTION SIGN(argument-1 )
argument-1
Must be of class numeric.
The returned value is as follows:
  • If the value of argument-1 is greater than zero, the returned value is 1.
  • If the value of argument-1 is zero, the returned value is 0.
  • If the value of argument-1 is less than zero, the returned value is -1.
End of change