Rounds an input up to the nearest whole number. Liquid tries to convert the input to a number before the filter is applied.
Input
{{ 1.2 | ceil }} {{ 2.0 | ceil }} {{ 183.357 | ceil }}
Output
2 2 184
Here the input value is a string:
{{ "3.5" | ceil }}
4
Last updated 2 years ago