Usage
Add easy-math.js to your project
To install, run:
$ npm i -S easy-math.js
Include easy-math.js
You can obtain easy-math.js directly in project with require('easy-math.js')
var emjs = emjs // 0.3
And you can use ES6 import
// 0.3
Methods
- addition
// 0.1 + 0.2 = 0.30000000000000004 // 0.3
- multiplication
// 0.3 * 0.75 = 0.22499999999999998 // 0.225
- subtraction
// 1.5 - 1.2 = 0.30000000000000004 // 0.3
- division
// 0.3 / 0.1 = 2.9999999999999996 // 3
Test
use avajs test