7.1
2013-09-23

SGN

Syntax

SGN(Number)

Description

Returns one of three possible values (-1,0 or 1), depending whether the number is negative, zero, or positive.

Example

SGN (-345) => -1

Parameter description

Number

Numeric expression or data field containing a number.