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

Bug #16733 Integral part treated incorrectly
Submitted: 2009-10-23 18:25 UTC
From: hubbitus Assigned: kouber
Status: Closed Package: Numbers_Words (version 0.16.1)
PHP Version: 5.3.0 OS: Linux
Roadmaps: (Not assigned)    
Comments Add Comment Add patch

Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem : 13 - 3 = ?

 [2009-10-23 18:25 UTC] hubbitus (Pavel Alexeev)
Description: ------------ Numbers_Words::toCurrency(44.555, 'en_US'): string(48) "forty-four dollars five hundred fifty-five cents" It's incorrect - in this example "five hundred fifty-five cents" is $5.55 instead of 56cents!. Fractional part must be rounded to 2 digits before convert. Fix is trivial, I'll do not include patch.


 [2009-10-27 16:10 UTC] kouber (Kouber Saparev)
-Assigned To: +Assigned To: kouber
 [2010-01-12 21:32 UTC] kouber (Kouber Saparev)
-Status: Assigned +Status: Closed
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on by the end of next Sunday (CET). If this was a problem with the website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. Added dependency to Math_BigInteger, in case the number is passed as string and cannot be rounded safely with the round() built-in function.