From c13341de33c530800e9c30b990887b3458a4fee2 Mon Sep 17 00:00:00 2001 From: Matthias Jentsch Date: Mon, 19 Nov 2018 22:17:35 +0100 Subject: [PATCH] Fix for issue #406 --- source/nanoFramework.CoreLibrary/System/Number.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/nanoFramework.CoreLibrary/System/Number.cs b/source/nanoFramework.CoreLibrary/System/Number.cs index 07eb39f2..4a21cdd5 100644 --- a/source/nanoFramework.CoreLibrary/System/Number.cs +++ b/source/nanoFramework.CoreLibrary/System/Number.cs @@ -436,7 +436,7 @@ private static String AppendFloatTrailingZeros(String original, int count, Numbe if (pos != -1) { // is the string representation missing any trailing zeros? - count = (original.Length - pos) - 1; + count = (original.Length - pos) - count - 1; if(count > 0) { return original + new String('0', count);