Files
liquid/filters/modulo.md
2016-04-02 18:46:32 -04:00

554 B

title
title
modulo

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 }} ```