I've looked around the questions and formatting prices with different currencies seems to be a recurring problem. I encountered a variation of this issue.
I have figured a format to display the price amount, say amount currencyCode
. Now my amount will vary depending on the currency, because for instance 1 EUR is worth about 25000 VND. So my item (I treat items of a specific range of values, between 10 and 100 euros) might be displayed as 10 EUR
as well as about 250000 VND
, which show a very different size when displaying it. Also, I ignore the fractional part of the amount.
My question is therefore, is there a maximum length of amount I can expect (I consider my display strategy should be valid for any official currency, and the amount is the equivalent of 1 USD)? Or is there a known display strategy (maybe in Vietnam people only display the number of thousands of Dong, not the number of Dong)?
12.95 EUR
etc., which is a bit closer in string length to300,000 VND
. Nevertheless, merchants in countries with low currency often do employ shortening strategies, but not everywhere and not always the same. (It’s been less than a year ago and I can’t remember how it was in Vietnam, but pretty sure it wasn’t ‘k’ notation.)