ceil - Liquid Filter Reference
On this page
Description
Rounds an input up to the nearest whole number. Liquid tries to convert the input to a number before the filter is applied.
| Property | Value |
|---|---|
| Return Type | number |
| Category | numbers |
Examples
```liquid
{{ 1.2 | ceil }} ```
Output: 2
```liquid
{{ 2.0 | ceil }} ```
Output: 2
```liquid
{{ 183.357 | ceil }} ```
Output: 184
Here the input value is a string
```liquid
{{ “3.2” | ceil }} ```
Output: 4
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.