Sgn()
Determines the sign of a number.
Sgn( number=number );
Returns: Number
Examples
The following code example will output the values returned from the sgn() function for the given input values.
15 = <cfoutput>#sgn(15)#</cfoutput><br>
-15 = <cfoutput>#sgn(-15)#</cfoutput>
See also
- Numbers
- Math
- numeric.sgn()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)