modulo - Liquid Filter Reference
On this page
Description
Returns the remainder of a division operation.
| Property | Value |
|---|---|
| Return Type | number |
| Category | numbers |
Examples
liquid
{{ 3 | modulo: 2 }}
Output: 1
liquid
{{ 24 | modulo: 7 }}
Output: 3
liquid
{{ 183.357 | modulo: 12 }}
Output: 3.357