ceiling

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

ceiling(number) → returns numeric

Argument Reference

number numeric
Required

The number for which to get the ceiling

Examples
Sample code invoking the ceiling function

ceiling(1.1)

Expected Result: 2

When ceiling an integer the result is equal to the value passed

ceiling(1)

Expected Result: 1

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub