floor Filter

Rounds a number down to the nearest integer.

Parameters

None.

Category

Math Filters

Description

Rounds a number down to the next integer. If the number’s value is equal to an integer, the integer representation of it is returned.

{{ 4.7 | floor }}

Output

4
{{ 4.0 | floor }}

Output

4