SGN (Sign Value)

The SGN function is used to find the sign value of a number.

Syntax

SGN ( number )

Remarks

The SGN function returns an integer indicating the sign of a number.

The Number argument can be any valid numeric expression. The sign of Number argument determines the value returned by the SGN function.

If X > 0, then SGN( X ) = 1

If X = 0, then SGN( X ) = 0

If X < 0, then SGN( X ) = -1