ZF-5922: Zend_Locale_Format::getNumber() ignores $option['precision']

Issue Type: Bug Created: 2009-03-02T05:31:28.000+0000 Last Updated: 2009-03-02T10:28:34.000+0000 Status: Resolved Fix version(s): - 1.7.7 (16/Mar/09)

Reporter: Ben R. (salzig) Assignee: Thomas Weidner (thomas) Tags: - Zend_Locale

Related issues: Attachments:


if you throw only

$option['precision'] = 3; echo Zend_Locale_Format::getFloat(123.123456,$option);

will output 123.123456 instead of 123.123


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.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.