From a712d03d990c997b12f9b08adf622001a71c56b1 Mon Sep 17 00:00:00 2001 From: Matthias Jentsch Date: Wed, 5 Sep 2018 23:09:39 +0200 Subject: [PATCH] Call sequence should be changed If we ReplaceDecimalSeperator first then the AppendFloatTrailingZeros doesn't find the decimal point. So we should first append the trailing zeros, then replace the decimal point and at least we should replace the negative sign. --- source/System/Number.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/System/Number.cs b/source/System/Number.cs index d1afdecc..07eb39f2 100644 --- a/source/System/Number.cs +++ b/source/System/Number.cs @@ -413,10 +413,10 @@ private static String PostProcessFloat(String original, char format, int precisi result = InsertGroupSeparators(result, info); } - result = ReplaceDecimalSeperator(result, info); - result = ReplaceNegativeSign(result, info); result = AppendFloatTrailingZeros(result, precision, info); - + result = ReplaceDecimalSeperator(result, info); + result = ReplaceNegativeSign(result, info); + return result; }