Am 21.05.2013 20:16, schrieb David Bruchmann:
Am 21.05.2013 20:00, schrieb Oliver Westerheide:
number_format(doubleval($content), $conf['decimal'],
$conf['dec_point'], $conf['thousands_sep'])
... ist die eigentliche Funktion, wo die Werte formatiert werden.
interessant ist, wie die Werte $conf['decimal'], $conf['dec_point'],
$conf['thousands_sep'] dort verwendet werden, bzw. Parameter dort
Auswirkungen haben.
Ich gehe davon aus, daß es nicht kompliziert ist, sondern daß Du evtl.
$conf['decimal'], $conf['dec_point'], $conf['thousands_sep'] einfach
falsch konfiguriert hast.
DIe gepostete Funktion mit sprintf() bezog sich auf einen Text und ist
daher belanglos.
number_format() ist in PHP integriert:
php.net/manual/de/function.number-format.php
daher halt die eintreffenden Parameter prüfen.
_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german