Round - MACROMEDIA COLDFUSION MX 61-CFML Reference

Cfml reference
Hide thumbs Also See for COLDFUSION MX 61-CFML:
Table of Contents

Advertisement

Round

Description
Rounds a number to the closest integer.
Returns
An integer.
Category
Mathematical functions
Function syntax
Round(number)
See also
Ceiling, Fix,
Parameters
Parameter
number
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(1.2345*100)/100 : <cfoutput>#Round(1.2345*100)/100#</cfoutput>
</ul>
Int
Description
Number to round
Round
671

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion mx

Table of Contents