C#中保留小数点后指定位数 float fl=1.23456;string str=fl.ToString("0.00"); //保留小数点后,结果为1.23小数点后有几个0即保留几位小数。 Other 2023-05-26 161 点赞 2 评论 243 浏览