Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.7.6
-
Fix Version/s: 1.8.0
-
Component/s: Zend_Currency
-
Labels:None
Description
When is use Zend_Currency, the roundings are working incorrectly (imho).
Unable to find source-code formatter for language: php. Available languages are: javascript, sql, xhtml, actionscript, none, html, xml, java
$currency = new Zend_Currency('EUR', 'nl_NL');
echo $currency->toCurrency('5.678', array('presicion' => 2));
I think it should display the number as: 5,68 but it is displayed as 5,67.
When looking in the code, the toCurrency uses the Zend_Locale_Format::toNumber(). Should it be using the toFloat() function instead?
S.
Use the correct option...
precision instead of presicion