ZF-10041: Incorrect digit grouping for Japanese numbers

Issue Type: Bug Created: 2010-06-23T07:40:02.000+0000 Last Updated: 2010-06-23T12:21:05.000+0000 Status: Resolved Fix version(s): - 1.10.7 (28/Jul/10)

Reporter: Alex Dean (alexatkeplar) Assignee: Thomas Weidner (thomas) Tags: - Zend_Locale

Related issues: Attachments:


Zend_Locale_Format::toNumber incorrectly groups the digits of Japanese numbers:

$currency = Zend_Locale_Format::toNumber(12345.67, array( 'precision' => 2, 'locale' => 'ja_JP' // or equally just 'ja' ) ); print $currency // prints 12,345.67 instead of 1,2345.67

See for confirmation of the requirement.


Posted by Thomas Weidner (thomas) on 2010-06-23T12:21:02.000+0000

According to Unicode the numbering for japanese numbers is "#,##0.###". Decimal is "." and grouping is ",".

This means that a number like "1234567.89" has to be displayed like


If this is not correct, then please add an issue to Unicode/CLDR ( as Zend Framework as also several other frameworks like Java are using CLDR as source for I18n handling.

Therefor closing as non-issue for ZF.

PS: Note that we are not allowed/will not change the content of CLDR within ZF.

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.