• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Name

Sgn

Synopsis

                   Sgn(number)

Returns 1 if the specified number is positive, 0 if the specified number is 0, or -1 if the number is negative. Examples:

<cfoutput>
-1: #Sgn(-1)#<br>
-1.123: #Sgn(-1.123)#<br>
-0.123: #Sgn(-0.123)#<br>
0: #Sgn(0)#<br>
0.123: #Sgn(0.123)#<br>
1: #Sgn(1)#<br>
1.123: #Sgn(1.123)#
</cfoutput>


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint