PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Numbers » Numbers_Words » Bug #4651

Incorrect suffix toCurrency with GBP

Details

Submitted2005-06-21 15:55 UTC
Frommark at igeek dot co dot uk
Assignedmakler
StatusClosed
PackageNumbers_Words
PHP Version4.3.11
OSLinux
Roadmaps(Not assigned)

Comments

[2005-06-21 15:55 UTC] mark at igeek dot co dot uk

Description:
------------
Using version 0.13.1 of Numbers_Words

if getting a word representation of a value, say 1234.45

Reproduce code:
---------------
$value = '1234.45';

$words = $nw->toCurrency($value, 'en_US', 'GBP');

print $words;

Expected result:
----------------
one thousand two hundred thirty-four pounds forty-five pence

---
The plural is pence rather than pences

Actual result:
--------------
one thousand two hundred thirty-four pounds forty-five pences

[2005-09-18 18:52 UTC] makler at php dot net

This bug has been fixed in CVS.

If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET).

If this was a problem with the pear.php.net 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.