ceil - Liquid Filter Reference - 0.10.11

Filter Name ceil
Group Numbers
Version 0.10.11

Description

Rounds an input up to the nearest whole number. Liquid tries to convert the input to a number before the filter is applied.

Examples

{{ 1.2 | ceil }}
2
{{ 2.0 | ceil }}
2
{{ 183.357 | ceil }}
184
Here the input value is a string:
{{ "3.5" | ceil }}
4

Back to Filter List

Back to Liquid Reference for 0.10.11

 

 
Back to Documentation