Sgn (function)

<< Click to Display Table of Contents >>

Sgn (function)

Sgn(Num)

Returns the sign of a number.

The possible return values are:

-1 if the number is < 0

0 if the number = 0

1 if the number is > 0

See also: Abs