Warning

You're browsing the old v2.x documentation. This version is no longer maintained. Click here to go the v3.x documentation.

SGN()

Syntax:

sgn(<int of float expression>)

The SGN() function returns the sign of a numerical argument as follows:

ArgumentResult
negative value-1
zero0
positive value (excluding zero) 1