ZF-5922: Zend_Locale_Format::getNumber() ignores $option['precision']
Description
if you throw only
$option['precision'] = 3; echo Zend_Locale_Format::getFloat(123.123456,$option);
will output 123.123456 instead of 123.123
if you throw only
$option['precision'] = 3; echo Zend_Locale_Format::getFloat(123.123456,$option);
will output 123.123456 instead of 123.123
Comments
Posted by Thomas Weidner (thomas) on 2009-03-02T10:22:44.000+0000
The input you are giving is not localized. So the function can not normalize it and it is returned as it is, without any changes.
Posted by Thomas Weidner (thomas) on 2009-03-02T10:28:34.000+0000
Not an issue. Non-localized input is returned without changes.