Int

Description

Returns the closest integer that is smaller than a number.

Category

Mathematical functions

Syntax


Int(number) 

See also

Ceiling, Fix, Round

Parameters

Parameter
Description
number
Real number to round down to an integer

Example

<!--- 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> 





Banner.Novgorod.Ru