ceiling

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

ceiling(number) → returns numeric

ceiling Argument Reference

number numeric
Required

Examples sample code invoking the ceiling function


Ceiling of 1.1

ceiling(1.1)

Expected Result: 2


Ceiling of 1

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

ceiling(1)

Expected Result: 1


Fork me on GitHub