Skip to content

Commit 28f34c8

Browse files
committed
Fixing ToKiloFormat method
1 parent a1602af commit 28f34c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/NuGetGallery/Extensions/NumberExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public static string ToKiloFormat(this int number)
9696

9797
return powers
9898
.Where(pow => Math.Abs(Math.Round(number / pow.Value, 3)) >= 1f)
99-
.Select(pow => string.Format("{0:F1}{1}", number / pow.Value, pow.Unit))
99+
.Select(pow => string.Format(CultureInfo.InvariantCulture, "{0:F1}{1}", number / pow.Value, pow.Unit))
100100
.First();
101101
}
102102
}

0 commit comments

Comments
 (0)