mirror of
https://github.com/kemko/liquid.git
synced 2026-01-07 02:35:40 +03:00
533 B
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 }}