Skip to content

Commit 58789f5

Browse files
committed
Update AppendInvariant method to use G7 precision for float formatting
1 parent e87b31c commit 58789f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

QRCoder/Extensions/StringExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ internal static void AppendInvariant(this StringBuilder sb, float num)
9696
return;
9797
}
9898
#endif
99-
sb.Append(num.ToString(CultureInfo.InvariantCulture));
99+
sb.Append(num.ToString("G7", CultureInfo.InvariantCulture));
100100
#endif
101101
}
102102
}

0 commit comments

Comments
 (0)