Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在大浮点数的情况下,您在 asp.net 中发现大浮点数显示如下:2000000 * 2000000 = 4E+12
如何在服务器端将 4E+12 显示为 4,000,000,000,000 而不是 4E+12?
float numb = 4e12f; string formattedNumber = numb.ToString("N0");
结果将是:formattedNumber = "4,000,000,000,000"
formattedNumber = "4,000,000,000,000"