modulo Filter

Divides 2 numbers and returns the remainder.

Parameters

Parameter Required Description
divisor Yes number Number to divide by.

Category

Math Filters

Description

Divides a number by a divisor and returns the remainder.

Hint: 21 / 4 = 5 with a remainder of 1
{{ 21 | modulo: 4 }}

Output

1