+ - * / % 加减乘除,取余
js中浮点数运算会有问题
var num = 0.1+0.2
console.log(num == 0.3) 输出false
console.log(0.1+0.2) 输出0.30000000000004
console.log(0.07*100) 输出7.000000000000000001
+ - * / % 加减乘除,取余
js中浮点数运算会有问题
var num = 0.1+0.2
console.log(num == 0.3) 输出false
console.log(0.1+0.2) 输出0.30000000000004
console.log(0.07*100) 输出7.000000000000000001