📜  c# 打印最后为零的小数 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:51.291000             🧑  作者: Mango

代码示例1
Copy Codestring input = "67.56000";
double d = Double.Parse(input);
string rounded_input = string.Format("{0:f3}", d);