Redefine what is a "large" currency.

Decimals currencies does make sense when 10 < rate < 100, so it's
neccesary to raise the limit before hiding decimals
This commit is contained in:
Daniel Trujillo 2016-07-01 21:59:56 +02:00
parent fc6f4929b7
commit 4ebcf80a1a
1 changed files with 1 additions and 1 deletions

View File

@ -504,7 +504,7 @@ void format_currency_2dp(char **dest, long long value)
}
// Drop the pennies for "large" currencies
if (rate > 10) {
if (rate >= 100) {
format_comma_separated_integer(dest, value / 100);
} else {
format_comma_separated_fixed_2dp(dest, value);