Commit 7f65dbde by zihan

处理浮点数运算

parent 09a68af9
......@@ -36,7 +36,7 @@ let getUpdatedData = function (currentData, response) {
updateData.push([response.data.price, response.data.count]);
} else {
// updateData = [[response.data.price, newCount]];
updateData.push([response.data.price, newCount.toPrecision(12)]);
updateData.push([response.data.price, newCount.toFixed(8)]);
}
return updateData;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment