Sgn

Determines the sign of a number.

Sgn( number )

Returns: Number

Argument Description
number
number, required

A 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