Skip to content

ceil

Syntax

ceil(x)

Parameters

x
An expression that evaluates to a numeric value.

Returns

Returns the smallest integer value greater than or equal to x.

Description

This action returns the ceiling of the given value, which is the smallest integer greater than or equal to the value.

Examples

The following examples all assign some numeric my_variable to 21:

my_variable = ceil(20.001)
my_variable = ceil(20.23)
my_variable = ceil(20.78)
my_variable = ceil(21)

See Also