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>       



1