Liquid Filter Reference for floor - v0.9.5

Filter Name floor
Group Numbers
Version 0.9.5

Description

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

Examples

{{ 1.2 | floor }}
1
{{ 2.0 | floor }}
2
{{ 183.357 | floor }}
183
Here the input value is a string:
{{ 3.5 | floor }}
3

Back to Filter List

Back to Liquid Reference for 0.9.5

 

 
Back to Documentation