Package

ViewHelpers

ViewHelper Documentation

format.number

Formats a number with custom precision, decimal point and grouped thousands.

= Examples =

<f:format.number>423423.234</f:format.number> 423,423.20

<f:format.number decimals="1" decimalSeparator="," thousandsSeparator=".">423423.234</f:format.number> 423.423,2

Arguments

decimals anySimpleType

The number of digits after the decimal point

decimalSeparator string

The decimal point character

thousandsSeparator string

The character for grouping the thousand digits

ViewHelper Resources

Schema Resources