View comments | RSS feed

Ceiling

Description

Determines the closest integer that is greater than a specified number.

Return value

The closest integer that is greater than a given number.

Category

Mathematical functions

Syntax

Ceiling(number)

See also

Int, Fix, Round

Parameters

Parameter Description
number
A real number

Example

<h3>Ceiling Example</h3>

<cfoutput>
<p>The ceiling of 3.4 is #ceiling(3.4)#
<p>The ceiling of 3 is #ceiling(3)#
<p>The ceiling of 3.8 is #ceiling(3.8)#
<p>The ceiling of -4.2 is #ceiling(-4.2)#
</cfoutput>

ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting

Version 6

Comments are no longer accepted for ColdFusion MX. ColdFusion 8 is the current version.

Comments


No screen name said on Sep 25, 2006 at 8:13 PM :
"Determines the closest integer that is greater than a specified number" is an incorrect description. This should read
"Determines the closest integer that is greater than or equal to a specified number".

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/coldfusion/6/CFML_Reference/functions-pt135.htm