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.
如何在德国文化中使用字符串格式将数字 89345.00 显示为 89.345,00?
谢谢。
var deCulture = CultureInfo.CreateSpecificCulture("de-DE"); string str = number.ToString("N", deCulture); // for numbers
http://msdn.microsoft.com/en-us/library/dwhawy9k.aspx
演示