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

Name

Fix

Synopsis

                   Fix(number)

Returns the closest integer less than the specified number if the number is greater than 0. If the specified number is less than 0, the closest integer greater than the number is returned. Examples:

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


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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