ICU MessageFormat Currency Value Precison Lost

Posted by Travis on Stack Overflow See other posts from Stack Overflow or by Travis
Published on 2010-03-23T00:04:44Z Indexed on 2010/03/23 0:11 UTC
Read the original article Hit count: 587

Filed under:
|
|
|
|

This may be a niche question but I'm working with ICU to format currency strings. I've bumped into a situation that I don't quite understand.

When using the MesssageFormat class, why for a certain locale (Korea "ko"KR" for example) does it round currency values (e.g. 100.50 becomes ?101). For most locales (such as the US "en_US"), the precision of the argument passed in remains untouched (e.g. 100.50 becomes $100.50).

I thought this might be a default rounding issue that some locales have (Swiss Francs "fr_CH" for example have a default 0.05 rounding) but South Korea "ko_KR" has none.

Any ideas?

© Stack Overflow or respective owner

Related posts about c++

Related posts about unicode