508
Round
Rounds a number to the closest integer.
See also Ceiling,
Syntax
Round( number )
number
Number being rounded.
Examples
<!--- This example shows the use of Round --->
<HTML>
<HEAD>
<TITLE>
Round Example
</TITLE>
</HEAD>
<ODY>
<H3>Round Example</H3>
<P>This function rounds a number to the closest
integer.
<UL>
<LI>Round(7.49) : <CFOUTPUT>#Round(7.49)#</CFOUTPUT>
<LI>Round(7.5) : <CFOUTPUT>#Round(7.5)#</CFOUTPUT>
<LI>Round(-10.775) : <CFOUTPUT>#Round(-10.775)#</CFOUTPUT>
<LI>Round(1.2345*100)/100 :
<CFOUTPUT>#Evaluate(Round(1.2345*100)/100)#</CFOUTPUT>
</UL>
</BODY>
</HTML>
Fix,
and Int.
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?
Questions and answers