Skip Menu |

This queue is for tickets about the Locale-Currency-Format CPAN distribution.

Report information
The Basics
Id: 28758
Status: resolved
Priority: 0/
Queue: Locale-Currency-Format

People
Owner: Nobody in particular
Requestors: cpan [...] desert-island.me.uk
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 1.22
Fixed in: 1.24



This module formats currencys as if they were in the country the currency is used in. It would be much more useful if one could also supply a country. Example: 4000 GBP in the UK, is written as £4,000.00 4000 GBP in Germany, is written as £4.000,00 Number and symbol formatting need to be separate, or one needs to be able to supply a country, which may default to the country the currency belongs to.
On Thu Aug 09 07:59:47 2007, JROBINSON wrote: Show quoted text
> This module formats currencys as if they were in the country the > currency is used in. It would be much more useful if one could also > supply a country. > > Example: > > 4000 GBP in the UK, is written as £4,000.00 > 4000 GBP in Germany, is written as £4.000,00 > > Number and symbol formatting need to be separate, or one needs to be > able to supply a country, which may default to the country the currency > belongs to. >
Should be able to do so now via the newly added currency_set. binmode STDOUT, ":utf8"; currency_set('GBP', '£ #.###,##', FMT_COMMON); print currency_format('GBP', 4000, FMT_COMMON), "\n"; The above will print £ 4.000,00