Files
liquid/_filters/ceil.md
2015-03-13 16:29:00 -07:00

461 B

title
title
ceil

ceil rounds the input up to the nearest whole number.

Input Output
{% raw %}`{{ 1.2 ceil }}` {% endraw %}
{% raw %}`{{ 1.7 ceil }}` {% endraw %}
{% raw %}`{{ 2.0 ceil }}` {% endraw %}
{% raw %}`{{ "18.3" ceil }}`{% endraw %}

It will attempt to cast any input to a number.