384
Int
Returns the closest integer smaller than a number.
See also Ceiling, Fix, and Round.
Syntax
Int( number )
number
Real number you want to round down to an integer.
Examples
<!--- This example shows the use of Int --->
<HTML>
<HEAD>
<TITLE>
Int Example
</TITLE>
</HEAD>
<BODY BGCOLOR=silver>
<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>
</BODY>
</HTML>
CFML Language Reference
Need help?
Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?