v1.9.1
Rounds the input up to the nearest whole number. LiquidJS tries to convert the input to a number before the filter is applied.
Input
1 | {{ 1.2 | ceil }} |
Output
1 | 2 |
Input
1 | {{ 2.0 | ceil }} |
Output
1 | 2 |
Input
1 | {{ 183.357 | ceil }} |
Output
1 | 184 |
Here the input value is a string:
Input
1 | {{ "3.5" | ceil }} |
Output
1 | 4 |