--- title: "Liquid filters: floor" description: Rounds a number down to the nearest integer. api_name: liquid source_url: html: https://shopify.dev/docs/api/liquid/filters/floor md: https://shopify.dev/docs/api/liquid/filters/floor.md --- # floor ```oobleck number | floor ``` returns [number](https://shopify.dev/docs/api/liquid/basics#number) Rounds a number down to the nearest integer. ```liquid {{ 1.2 | floor }} ``` ## Output ```html 1 ```