From 4ebcf80a1aa922fadb019afe98b70b41e18a32b4 Mon Sep 17 00:00:00 2001 From: Daniel Trujillo Date: Fri, 1 Jul 2016 21:59:56 +0200 Subject: [PATCH] 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 --- src/localisation/localisation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/localisation/localisation.c b/src/localisation/localisation.c index 7d95ea4822..0a18840a93 100644 --- a/src/localisation/localisation.c +++ b/src/localisation/localisation.c @@ -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);