Name

Int

Synopsis

                  
                  Int(number)

Returns the closest integer smaller than the given number. Examples:

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

Get Programming ColdFusion MX, 2nd Edition 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.