Sgn

Determines the sign of a number.

Returns: number

Usage

Sgn( number )

Arguments

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