{"title":"divided_by - Liquid Filter Reference","slug":"divided-by-filter-reference","url":"https://support.storeconnect.com/articles/divided-by-filter-reference","url_markdown":"https://support.storeconnect.com/articles/divided-by-filter-reference.md","subtitle":null,"summary":"Divides a number by another number. Integer divisors produce rounded-down results; use a float divisor (e.g. 7.0) to get decimal precision.","type":"Developer_Documentation","video_url":"","keywords":"liquid, filters, divided_by, numbers, storeconnect","last_modified":"2026-08-21T07:12:35+0000","body_markdown":"## Description\n\nDivides a number by another number.\n\n| Property | Value |\n|----------|-------|\n| **Return Type** | number |\n| **Category** | numbers |\n\n## Examples\n\nThe result is rounded down to the nearest integer if the divisor is an integer\n\n\n```liquid\n\n{{ 16 | divided_by: 4 }}\n```\n\n\n**Output:** `4`\n\n\n```liquid\n\n{{ 5 | divided_by: 3 }}\n```\n\n\n**Output:** `1`\n\n\n```liquid\n\n{{ 20 | divided_by: 7 }}\n```\n\n\n**Output:** `2`\n\n\n```liquid\n\n{{ 20 | divided_by: 7.0 }}\n```\n\n\n**Output:** `2.857142857142857`\n\nYou can multiply an integer variable by 1.0 to get a float, then divide by the float instead\n\n\n```liquid\n\n{% assign an_integer = 7 %}\n{% assign a_float = an_integer | times: 1.0 %}\n{{ 20 | divided_by: a_float }}\n```\n\n\n**Output:** `2.857142857142857`"}