From b74b35d8c4602013b67757bbbf8ac6f86be77f67 Mon Sep 17 00:00:00 2001 From: Florian Stinglmayr Date: Wed, 26 Jan 2022 09:59:57 +0100 Subject: [PATCH] no decimal digits unless we actually have one --- Credits.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Credits.cs b/Credits.cs index e8899b6..d0f5a02 100644 --- a/Credits.cs +++ b/Credits.cs @@ -11,7 +11,7 @@ namespace EDJournal { format.NumberGroupSeparator = ","; format.NumberDecimalSeparator = "."; format.NumberGroupSizes = new int[1] { 3 }; - format.NumberDecimalDigits = 1; + format.NumberDecimalDigits = 0; if (amount > 0 && (amount % 1000000000) == 0) { amount /= 1000000000; return string.Format("{0}M CR", amount.ToString("N", format));