可写为
string str=douRate.ToString("0.00");
如返回为double型也可以
double dou=double.Parse(douRate.ToString("0.00"));
当然了也可以用 Math.Round方法
decimal result = Math.Round(douRate,2); 后面的2表示保留小数点后2位小数
admin2025/5/24 22:56:10【news】
简介铜川网站建设报价,哪个好用?,长沙网站制作公司,三门峡市住房和城乡建设局网站可写为 string strdouRate.ToString("0.00"); 如返回为double型也可以 double doudouble.Parse(douRate.ToString("0.00")); 当然了也可以用 Math.Round方法 decimal result Math.Round(douRate,2); 后面的2表示保留小数点后2位小数
可写为
string str=douRate.ToString("0.00");
如返回为double型也可以
double dou=double.Parse(douRate.ToString("0.00"));
当然了也可以用 Math.Round方法
decimal result = Math.Round(douRate,2); 后面的2表示保留小数点后2位小数