inc得到的小数位不正确
{
coins: 0.2
}
let scores = Number(10);
let cost = parseFloat(parseFloat(scores / 200).toFixed(2));
coins: _.inc(-cost)
之后coins:0.15000000000000002
{
coins: 0.2
}
let scores = Number(10);
let cost = parseFloat(parseFloat(scores / 200).toFixed(2));
coins: _.inc(-cost)
之后coins:0.15000000000000002