Attention
TYPO3 v10 has reached end-of-life as of April 30th 2023 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v10 here: TYPO3 ELTS.
format.number¶
Formats a number with custom precision, decimal point and grouped thousands. See https://www.php.net/manual/function.number-format.php.
Examples¶
With all parameters¶
<f:format.number decimals="1" decimalSeparator="," thousandsSeparator=".">
423423.234
</f:format.number>
423.423,2
Arguments¶
decimals¶
- DataType
mixed
- Default
'2'
- Required
false
- Description
The number of digits after the decimal point
decimalSeparator¶
- DataType
string
- Default
'.'
- Required
false
- Description
The decimal point character
thousandsSeparator¶
- DataType
string
- Default
','
- Required
false
- Description
The character for grouping the thousand digits