Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.18.2

Bug #20495 Long-scale naming vs Short-scale naming
Submitted: 2015-01-29 22:32 UTC
From: shehriyari Assigned:
Status: Open Package: Numbers_Words (version SVN)
PHP Version: Irrelevant OS: All
Roadmaps: (Not assigned)    
Subscription  


 [2015-01-29 22:32 UTC] shehriyari (Shahriyar Imanov)
Description: ------------ @see http://en.wikipedia.org/wiki/Long_and_short_scales#English-speaking As you can see from this source, there are two naming conventions for large numbers in West. Generally most continental Europe and Latin America use some weird method called "long-scale" where numbers' names in Short-scale (which is used by the rest of the world) are used **wrongly**. Now, thing is, when I viewed en_GB language version file of this package, I noticed such discrepancies in the naming of numbers. E.g.: 10^12 is called "billion" whereas in English -speaking world, 10^9 is billion. 10^12 is "trillion" and so on, so forth. All seems OK in en_US version tho. Please check the code against this topic and make relevant fixes. Because it is VERY confusing. Test script: --------------- $this->assertEquals('two billion', $this->handle->toWords(2000000000, $this->lang)); Expected result: ---------------- two billion Actual result: -------------- thousand million

Comments