Actions
Feature #17912
closedstdWrap.numberFormat for rendering prices
Start date:
2007-12-12
Due date:
% Done:
0%
Estimated time:
PHP Version:
5.2
Tags:
Complexity:
Sprint Focus:
Description
A lot of extensions need number formating, nearly everywhere where a price has to be rendered. The easiest way to do that would be a stdWrap option numberFormat =1 with the options of the php function.
stdWrap.numberFormat = 1
stdWrap.numberFormat {
decimals = 2
decPoint = .
thousandsStep = '
}
(issue imported from #M6936)
Updated by Oliver Hader almost 17 years ago
Besides defining each property, this information could be used from current locale set (e.g. 'de_DE' or 'fr_FR') by localeconv(), the result is something like this:
[decimal_point] => ,
[thousands_sep] => .
[int_curr_symbol] => EUR
[currency_symbol] => ยค
[mon_decimal_point] => ,
[mon_thousands_sep] => .
[positive_sign] =>
[negative_sign] => -
[int_frac_digits] => 2
[frac_digits] => 2
[p_cs_precedes] => 0
[p_sep_by_space] => 1
[n_cs_precedes] => 0
[n_sep_by_space] => 1
[p_sign_posn] => 1
[n_sign_posn] => 1
[grouping] => Array
(
[0] => 3
[1] => 3
)
[mon_grouping] => Array
(
[0] => 3
[1] => 3
)
Updated by Chris topher over 14 years ago
This will be solved by #22279, which should become part of TYPO3 4.5.
Actions