floor

Filter = floor

Rounds the input down to the nearest whole number. Liquid tries to convert the input to a number before the filter is applied.

INPUT

OUTPUT

{{ 1.2 | floor }}

1

INPUT

OUTPUT

{{ 2.0 | floor }}

2

INPUT

OUTPUT

{{ 183.357 | floor }}

183

Here the input value is a string:

INPUT

OUTPUT

{{ "3.5" | floor }}

3