可写为

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位小数

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-25
  • 2022-12-23
  • 2021-12-18
  • 2022-12-23
  • 2021-10-24
相关资源
相似解决方案