Project

General

Profile

Actions

Feature #17912

closed

stdWrap.numberFormat for rendering prices

Added by Sonja Schubert over 16 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Communication
Target version:
-
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)


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Feature #22279: Add .numberFormat function to stdWrapClosedSteffen Kamper2010-03-15

Actions
Actions #1

Updated by Jonas Felix over 16 years ago

Nice idea! Great work sonja.

Actions #2

Updated by Oliver Hader over 16 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
)

@see: http://de.php.net/localeconv

Actions #3

Updated by Chris topher almost 14 years ago

This will be solved by #22279, which should become part of TYPO3 4.5.

Actions #4

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF