{"title":"floor - Liquid Filter Reference","slug":"floor-filter-reference","url":"https://support.storeconnect.com/articles/floor-filter-reference","url_markdown":"https://support.storeconnect.com/articles/floor-filter-reference.md","subtitle":null,"summary":"Rounds a number down to the nearest whole number. Liquid attempts to convert string inputs to numbers before rounding.","type":"Developer_Documentation","video_url":"","keywords":"liquid, filters, floor, numbers, storeconnect","last_modified":"2026-08-21T07:12:35+0000","body_markdown":"## Description\n\nRounds an input down to the nearest whole number. Liquid tries to convert the input to a number before the filter is applied.\n\n| Property | Value |\n|----------|-------|\n| **Return Type** | number |\n| **Category** | numbers |\n\n## Examples\n\n\n```liquid\n\n{{ 1.2 | floor }}\n```\n\n\n**Output:** `1`\n\n\n```liquid\n\n{{ 2.0 | floor }}\n```\n\n\n**Output:** `2`\n\n\n```liquid\n\n{{ 183.357 | floor }}\n```\n\n\n**Output:** `183`\n\nHere the input value is a string\n\n\n```liquid\n\n{{ 3.5 | floor }}\n```\n\n\n**Output:** `3`"}