Previous PageNext Page

8.4.68 Sgn Function

Returns an integer indicating the sign of a number.
 

Syntax

Sgn(number)

Arguments

number
Any valid numeric expression.

Return Values

The Sgn function has the following return values:
 

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

Remarks

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

Copyright © 2000 Chili!Soft

Previous PageTop Of PageNext Page