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 zero, 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>

Get Programming ColdFusion now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.