This page last changed on Oct 18, 2011 by jed.wheeler@involver.com.

Overview

Modulo.

This filter returns the remainder of dividing two integers.


Attributes

type required description
integer true Divisor. The number you want to divide by to get the remainder.

Examples

Simple Example

Get the remainder of 10 / 3:

{{ 10 | mod:3 }}

Returns:

1

Get the remainder of 4 / 4:

{{ 4 | mod:4 }}

Returns:

0

FAQ

This filter has no frequently asked questions.


Related Topics

Document generated by Confluence on Feb 12, 2013 09:09