Skip to content
Zotonic
  • Start
  • Cookbook
  • Reference
  • Releases

Live search

Search across all Zotonic content

Type at least two characters

Results are matched against titles, summaries and topics as you type.

Filters · mod_base
  • Reference
  • Frontend developer
  • Template filter
  • Transform
  • Number

floor

Module

mod_base

Round down a floating point value.

Example:

{{ 3.5 | floor }}

Results in the integer value 3.

Edit on GitHub

Related documentation

Filters

round

Round a floating point value to the nearest integer.

Filters

round_significant

Round a number value to a number of significant digits. The significance defaults to two digits.

Filters

to_integer

Convert the input to an integer value.

Filters

to_boolean

Convert the input to a boolean value.

Filters

sum

Sum a list of numbers.

Filters

language_sort_localized

Sort a list of language codes or map with languages on their localized name in the currently selected language. This is useful for…

Filters

truncatechars

Truncate a text to a maximum length in characters.

Filters

sub_year

Subtracts a year from a date. The value must be of the form {{Y,M,D},{H,I,S}} .

Filters

vsplit_in

This filter splits a list in shorter lists. It splits an array in N sub-arrays of more or less equal length. This is useful when displaying…

GitHub © 2026 Zotonic