ceil

Filter = ceil

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

INPUT

OUTPUT

{{ 1.2 | ceil }}

2

INPUT

OUTPUT

{{ 2.0 | ceil }}

2

INPUT

OUTPUT

{{ 183.357 | ceil }}

184

Here the input value is a string:

INPUT

OUTPUT

{{ "3.5" | ceil }}

4