Skip to content

Commit 83e77f0

Browse files
committed
use invariant format provider
1 parent e2e5145 commit 83e77f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Smdn.Fundamental.SIPrefix/Smdn.Formats/SIPrefixNumberFormatter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public string Format(string format, object arg, IFormatProvider formatProvider)
176176
if (digits == 0)
177177
ret.Append(((long)val).ToString("D"));
178178
else
179-
ret.Append(val.ToString("F" + digits.ToString("D", provider: null)));
179+
ret.Append(val.ToString("F" + digits.ToString("D", provider: NumberFormatInfo.InvariantInfo)));
180180
}
181181

182182
if (!abbreviate && 0 < prefixes[aux].Length)

0 commit comments

Comments
 (0)