转换字符串格式

string.Format("{0:F2}",temp);
原文地址:https://www.cnblogs.com/ANLOG/p/2610213.html