标签: c#
我需要45.7为45.70
Math.Round(d,2)无效。 尝试过十进制和双精度型。
我会感激任何帮助。
答案 0 :(得分:0)
您需要应用字符串格式:
string.Format("{0:N2}", 45.7)
点击此处查看string formatters