Contents > CFML Reference > ColdFusion Functions > Int PreviousNext

Int

Calculates the closest integer that is smaller than number.

An integer, as a string.

Mathematical functions

Int(number)

Ceiling, Fix, Round

Parameter

Description

number

Real number to round down to an integer

<h3>Int Example</h3>
<p>Int returns the closest integer smaller than a number.

<p>Int(11.7) : <cfoutput>#Int(11.7)#</cfoutput>
<p>Int(-11.7) : <cfoutput>#Int(-11.7)#</cfoutput>
<p>Int(0) : <cfoutput>#Int(0)#</cfoutput>

Contents > CFML Reference > ColdFusion Functions > Int PreviousNext

ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting

Version 6.1

Comments are no longer accepted for ColdFusion MX 6.1. ColdFusion 8 is the current version.