floor
Round a floating point number down to the nearest lower integer.
Syntax
{{ number | floor }}Example
{% assign score = 4.9 %}{{ score | floor }} Star TierOutput
4 Star TierThe floor filter rounds a floating point number downward to the nearest whole integer, truncating fractional values cleanly.
On keyword combination landing pages, floor categorizes continuous numerical ratings into distinct tier badges or conservative point thresholds. For example: {{ row.customer_rating | floor }} Star Certified Provider. This transforms decimal review scores into clean, standardized category labels for filterable search directories.
Filters
- abs
- append
- at_least
- at_most
- capitalize
- ceil
- compact
- concat
- date
- default
- divided_by
- downcase
- escape
- escape_once
- first
- floor
- join
- last
- lstrip
- map
- minus
- modulo
- newline_to_br
- plus
- prepend
- remove
- remove_first
- replace
- replace_first
- reverse
- round
- rstrip
- size
- slice
- sort
- sort_natural
- split
- strip
- strip_html
- strip_newlines
- times
- truncate
- truncatewords
- uniq
- upcase
- url_decode
- url_encode
- where
- raw
- slugify
- number_format
