public static string FormatLargeNumber(double number)
{
string[] suffixes = { "K", "M", "B", "T", "aa", "ab", "ac", "ad" };
if (number == 0)
return "0";
int index = 0;
while (number >= 1000 && index < suffixes.Length)
{
index++;
number /= 1000;
}
return string.Format("{0:F2}{1}", number, suffixes[index]);
}
大额数值换算
最新推荐文章于 2025-05-02 21:14:58 发布