Sgn

This function determines the sign of a number.

Syntax

Sgn(number)

Parameters

number
Any valid numeric expression.

Return Values

The following table shows the return values for the Sgn function.

If number is
Sgn returns
Greater than 0 1
Equal to 0 0
Less than 0 –1

Remarks

The sign of the number parameter determines the return value of the Sgn function.