We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a1602af + 28f34c8 commit 86a909eCopy full SHA for 86a909e
1 file changed
src/NuGetGallery/Extensions/NumberExtensions.cs
@@ -96,7 +96,7 @@ public static string ToKiloFormat(this int number)
96
97
return powers
98
.Where(pow => Math.Abs(Math.Round(number / pow.Value, 3)) >= 1f)
99
- .Select(pow => string.Format("{0:F1}{1}", number / pow.Value, pow.Unit))
+ .Select(pow => string.Format(CultureInfo.InvariantCulture, "{0:F1}{1}", number / pow.Value, pow.Unit))
100
.First();
101
}
102
0 commit comments