mirror of
https://github.com/kemko/liquid.git
synced 2026-01-04 17:25:41 +03:00
635 B
635 B
title, description
| title | description |
|---|---|
| modulo | Liquid filter that returns the remainder from a division operation. |
Returns the remainder of a division operation.
Input
```liquid {% raw %} {{ 3 | modulo: 2 }} {% endraw %} ```Output
```text {{ 3 | modulo: 2 }} ```Input
```liquid {% raw %} {{ 24 | modulo: 7 }} {% endraw %} ```Output
```text {{ 24 | modulo: 7 }} ```Input
```liquid {% raw %} {{ 183.357 | modulo: 12 }} {% endraw %} ```Output
```text {{ 183.357 | modulo: 12 }} ```