Tahler / currency-rs

A library providing a way to represent currencies in Rust.
http://tahler.github.io/currency-rs/currency/index.html
MIT License
8 stars 4 forks source link

Currency abbreviations #9

Open sssilver opened 5 years ago

sssilver commented 5 years ago

We work with an API that does not use currency symbols, instead it uses three-letter currency abbreviations ("AMD", "USD", "EUR", etc). In my experience this is quite a bit more common than using the symbols (֏, $, €, etc).

The crate should probably support working with currency abbreviations. I suppose using a String instead of a char for symbol could be a start, or it could just be its own separate thing orthogonal to the symbol.