Returns the closest integer that is smaller than a number.
Int(number)
Parameter |
Description |
---|---|
number |
Real number to round down to an integer |
<!--- 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>