Round up | MATH_CEILING

Syntax

MATH_CEILING( [value] )

Parameters

value
A number. If the value is not a NUMBER, the FLOAT operation will be used to convert it.

Return Value

Returns a number.

Description

Returns the nearest integer that is greater than or equal to a given number.

Examples

MATH_CEILING(-16.7) # returns -16
MATH_CEILING(16.3) # returns 17
MATH_CEILING(null) # returns 0
MATH_CEILING("-21.7") # returns 22