提交 ab564191 编写于 作者: L Lai Yingchun 提交者: QinZuoyan

use std::abs explicit to avoid reference to cstdlib abs, which will convert double to int (#234)

上级 6ff9d670
......@@ -645,7 +645,7 @@ public:
void append_data(double data)
{
if (abs(data) < 1e-6) {
if (std::abs(data) < 1e-6) {
append_data("0.00");
} else {
std::stringstream s;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册