Creating a Currency
The Money2 package includes a list of most of the Common Currencies with the appropriate default format and scale.
In some cases you may need to create your own currency.
Creating a Currency is simple:
The Currency also allows you to optionally provide a country, unit and name. The common currencies have currency-specific values for each of these.
You would normally create a single instance of a Currency and re-use that throughout your code base. The easiest way to do this is to register your currency.
Last updated
Was this helpful?