| CFML Reference
|
|
ColdFusion Functions
|
Ceiling
Description
Returns the closest integer greater than a given number.
Category
Mathematical functions
Syntax
Ceiling(number)
See also
Int, Fix, Round
Parameters
| Parameter |
Description |
number
|
A real number
|
Example <!--- This example illustrates the CF function ceiling --->
<html>
<head>
<title>Ceiling Example</title>
</head>
<body bgcolor = silver>
<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>
</body>
</html>
|
Copyright © 2001, Macromedia Inc. All rights reserved. |
|
|