1.1.4 • Published 4 years ago

easy-math.js v1.1.4

Weekly downloads
11
License
MIT
Repository
github
Last release
4 years ago

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 = require('easy-math.js')

emjs.add(0.1, 0.2) // 0.3

And you can use ES6 import

import { add } from 'easy-math.js'

add(0.1, 0.2) // 0.3

Methods

  • addition
// 0.1 + 0.2 = 0.30000000000000004
add(0.1, 0.2) // 0.3
  • multiplication
// 0.3 * 0.75 = 0.22499999999999998
multiply(0.3, 0.75) // 0.225
  • subtraction
// 1.5 - 1.2 = 0.30000000000000004
subtract(1.5, 1.2) // 0.3
  • division
// 0.3 / 0.1 = 2.9999999999999996
divide(0.3, 0.1) // 3

Test

use avajs test

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.4

5 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago