为什么对浮点数使用abs函数取整以后,得到的结果不均一?求出来的平均值和真实值误差大,怎么克服?
http://blog.csdn.net/yang3wei/article/details/6698736
首先abs函数不是用来取整的,而是用来取绝对值的
http://en.cppreference.com/w/cpp/numeric/math/abs