Skip to content

Commit 790d32f

Browse files
committed
Update ToStr method to use G7 precision for float formatting
1 parent 58789f5 commit 790d32f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

QRCoder/PdfByteQRCode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ private static string ColorToPdfRgb(byte[] color)
246246
/// </summary>
247247
/// <param name="value">The float value to convert.</param>
248248
/// <returns>String representation of the float.</returns>
249-
private static string ToStr(float value) => value.ToString("0.######", CultureInfo.InvariantCulture);
249+
private static string ToStr(float value) => value.ToString("G7", CultureInfo.InvariantCulture);
250250
}
251251

252252
/// <summary>

0 commit comments

Comments
 (0)