Sgn

"-->
 Sgn (number) 

Description

Determines the sign of a number and returns 1 (if the number is positive), 0 (if the number is 0), or 1 (if the number is negative).

Example

 <cfoutput>  The sign of 10 is: #Sgn(10)#  The sign of -10 is: #Sgn(-10)#  </cfoutput>  


Inside ColdFusion MX
Inside Coldfusion MX
ISBN: 0735713049
EAN: 2147483647
Year: 2005
Pages: 579

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net