js-fix-calc
v0.0.7
Published
fix 1.1 - 1.3 = -0.19999999999999996
Downloads
10
Readme
js-calc
fix 1.1 - 1.3 = -0.19999999999999996
Usage
import calc from 'js-fix-calc'
Vue.use(calc)
import { calc } from 'js-calc'
calc(1.1).add(1.3) // 2.4
calc(1.1).subtract(1.3) // -0.2
calc(1.1).divide(2) // 0.55
calc(1.1).multiply(2) // 2.2
calc(1.1).f().subtract(0.2).subtract(0.1).multiply(2).result() // 2