Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.8.1
-
Fix Version/s: 1.9.0
-
Component/s: Zend_Currency
-
Labels:None
Description
I've tried the following code:
{{
$currency = new Zend_Currency('de_DE');
echo $currency->toCurrency(34567.43212, array('precision' => 2));
echo $currency->toCurrency(34567.43212, array('precision' => 0));
}}
The first echo returns "34.567,43 €" as it should. The second echo should return "34.567 €" but it returns "34.567.00 €".
I guess with versions 1.7.x of ZF that problem didn't exists.
Issue Links
| This issue duplicates: | ||||
| ZF-6560 | Zend_Currency::toCurrency(): precision bug with positive values |
|
|
|
Hello Thomas,
okay I've tried the format-options in the array.
Like that:
{{echo $currency->toCurrency(34567.43212, array('precision' => 0, 'format' => '#,##0'))