floor - Liquid Filter Reference
On this page
Description
Rounds an input down 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 | floor }} ```
Output: 1
```liquid
{{ 2.0 | floor }} ```
Output: 2
```liquid
{{ 183.357 | floor }} ```
Output: 183
Here the input value is a string
```liquid
{{ 3.5 | floor }} ```
Output: 3
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.