Ceiling

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

Method Signature

Ceiling(number=[numeric])

Arguments

Argument
Type
Required
Description
Default

number

numeric

true

The number for which to find the ceiling value.

Examples

Ceiling of 1.1

Run Example

ceiling( 1.1 );

Result: 2

Ceiling of 1

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

Run Example

Result: 1

Additional Examples

Last updated

Was this helpful?