摘要: 用到了math 里的两个函数 round powdouble Myround(double n,int length){ return round(n*pow(10, length))/pow(10, length);}例如想求12312.4455453 后边的三位小数可以这么写Myround(1... 阅读全文
posted @ 2015-12-15 11:23 鲁国将士 阅读(715) 评论(0) 推荐(0) 编辑