Commit 4897d319 by zihan

处理浮点数运算

parent 8f393052
......@@ -31,13 +31,12 @@ let getUpdatedData = function (currentData, response) {
break;
}
}
console.log(typeof newCount);
if (!has) {
if(response.data.action !== 'CANCEL')
updateData.push([response.data.price, response.data.count]);
} else {
// updateData = [[response.data.price, newCount]];
updateData.push([response.data.price, newCount.toFixed(8)]);
updateData.push([response.data.price, parseFloat(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