MicroPyramid / forex-python

Foreign exchange rates, Bitcoin price index and currency conversion using ratesapi.io
http://forex-python.readthedocs.io/en/latest/usage.html
MIT License
662 stars 197 forks source link

Request: information on which side of the currency should the currency symbol should be displayed #72

Closed kunambi closed 1 year ago

kunambi commented 5 years ago

It would be very nice/helpful if it was possible to retrieve information whether the currency symbol should be displayed on the left or right side of the value of the currency, i.e.: S$123 (Singapore Dollar, left) or 123€ (Euro, right)

ashwin31 commented 3 years ago

I welcome a pull request.

kunambi commented 1 year ago

According to https://en.wikipedia.org/wiki/Currency_symbol, it seems that it's not a convention per symbol but rather in which language you're reading:

In formatting, the symbol can use various formattings: before, between or after the numeric amounts: €2.50, 2,50 € and 2$50, for example; this positioning is determined by national convention.