MACROMEDIA COLFUSION MX 7-CFML Reference page 828

Cfml reference
Hide thumbs Also See for COLFUSION MX 7-CFML:
Table of Contents

Advertisement

Round
Description
Rounds a number to the closest integer that is larger than the input parameter.
Returns
An integer.
Category
Mathematical functions
Function syntax
Round(number)
See also
,
,
Ceiling
Fix
Int
Parameters
Parameter
number
Usage
Use this function to round a number. This function rounds numbers that end with .5 up to the
nearest integer. It rounds 3.5 to 4 and -3.5 to -3.
Example
<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(-35.5) : <cfoutput>#Round(-35.5)#</cfoutput>
<li>Round(35.5) : <cfoutput>#Round(35.5)#</cfoutput>
<li>Round(1.2345*100)/100 : <cfoutput>#Round(1.2345*100)/100#</cfoutput>
</ul>
828
Chapter 3: ColdFusion Functions
Description
Number to round

Advertisement

Table of Contents
loading

This manual is also suitable for:

Colfusion mx 7 - installing and using coldfusion mx

Table of Contents