Whatever message this page gives is out now! Go check it out!

Round

Last update:
May 18, 2026

Description

Rounds a number to the closest integer.

Returns

An integer.

Category

Function syntax

Round(number)

See also

Ceiling, Fix, FloorInt

Parameters

Parameter
Description
number
Number to round

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>

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page