摘要: //保留小数点后面两位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); 阅读全文
posted @ 2013-03-15 14:43 Mr zhao 阅读(286) 评论(0) 推荐(0) 编辑