Go to page content

format_number

Show an integer or float.

Formats integer and float values as a list, assuming a radix of ten.

For example:

{{ value|format_number }}

When the value is the float 12.0 then the output is the list “12.0”.

See also the filter format_integer.

This page is part of the Zotonic documentation, which is licensed under the Apache License 2.0.