# Math filters

Math filters allow you to apply mathematical tasks.

Math filters can be linked and, as with any other filters, are applied in order of left to right. In the example below, `minus` is applied first, then `times`, and finally `divided_by`.

## abs

Returns the absolute value of a number.

Input

``````
{{ -17 | abs }}

``````

Output

``````17
``````

`abs` will also work on a string if the string only contains a number.

Input

``````
{{ "-19.86" | abs }}

``````

Output

``````19.86
``````

## at_most

Limits a number to a maximum value.

Input

``````{{ 4 | at_most: 5 }}
{{ 4 | at_most: 3 }}
``````

Output

``````4
3
``````

## at_least

Limits a number to a minimum value.

Input

``````{{ 4 | at_least: 5 }}
{{ 4 | at_least: 3 }}
``````

Output

``````5
4
``````

## ceil

Rounds an output up to the nearest integer.

Input

Output

## divided_by

Divides an output by a number. The output is rounded down to the nearest integer.

Input

Output

## floor

Rounds an output down to the nearest integer.

Input

Output

## minus

Subtracts a number from an output.

Input

Output

## plus

Adds a number to an output.

Input

Output

## round

Rounds the output to the nearest integer or specified number of decimals.

Input

Output

## times

Multiplies an output by a number.

Input

Output

## modulo

Divides an output by a number and returns the remainder.

Input

Output