📅  最后修改于: 2022-03-11 14:49:11.750000             🧑  作者: Mango
代码示例2
int numDigitsAfterPoint = 5;
double num = 1.25d;
string result = num.ToString("0." + new string('0', numDigitsAfterPoint));