摘要:
//保留小数点后面两位Math.Round(string string1,int num1,MidpointRounding.AwayFromZero);注:string string1: 要四舍五入的内容;intnum :保留的位数;例:保留两位。double month12_Day = Math.Round(Convert.ToDouble(newFormula[11].ToString()) / 31, 2, MidpointRounding.AwayFromZero); 阅读全文