Files
liquid/filters/ceil.md
2016-03-15 19:36:29 -04:00

533 B

title
title
ceil

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

{% raw %}
{{ 1.2 | ceil }}
{% endraw %}
{{ 1.2 | ceil }}
{% raw %}
{{ 2.0 | ceil }}
{% endraw %}
{{ 2.0 | ceil }}
{% raw %}
{{ 183.357 | ceil }}
{% endraw %}
{{ 183.357 | ceil }}

Here the input value is a string:

{% raw %}
{{ "3.5" | ceil }}
{% endraw %}
{{ "3.5" | ceil }}