Skip to content

Commit 35f62a9

Browse files
MatthiasJentschjosesimoes
authored andcommitted
Fix ToString() output (#56)
1 parent 397e4bf commit 35f62a9

File tree

1 file changed

+1
-1
lines changed
  • source/nanoFramework.CoreLibrary/System

1 file changed

+1
-1
lines changed

source/nanoFramework.CoreLibrary/System/Number.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ private static String AppendFloatTrailingZeros(String original, int count, Numbe
436436
if (pos != -1)
437437
{
438438
// is the string representation missing any trailing zeros?
439-
count = (original.Length - pos) - 1;
439+
count = (original.Length - pos) - count - 1;
440440
if(count > 0)
441441
{
442442
return original + new String('0', count);

0 commit comments

Comments
 (0)