CEIL / CEILING

Applies to: ✅ Data 360 SQL ✅ Tableau Hyper API

Returns the nearest integer greater than or equal to the argument. CEILING is an alias for CEIL.

Syntax 

1ceil(<dp_or_numeric>)
2ceiling(<dp_or_numeric>)

Arguments 

Required 

  • <dp_or_numeric>: The double precision or numeric value to round up.

Returns 

Returns the rounded-up value by using the same data type as the input.

Examples 

Round Up with CEIL 

Round a value up to the nearest integer.

1SELECT ceil(41.1) AS result;
2SELECT ceil(-42.8) AS result;

Returns 42.0 and -42.0.

Related Documentation 

DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!