awesome-calculator

2.0.0 • Public • Published

awesome calculator

introduce

this kit resolve some awful operating problem, like "0.1 + 0.2" etc.

warn

It is implemented with ES6, so you must use it in environment that support ES6

in node

npm install awesome-calculator --save
var cal = require('awesome-calculator')

in browser

<script src="https://unpkg.com/awesome-calculator"></script>

API

  1. mul multiplied operating, you can pass number or string
var cal = require('awesome-calculator')
console.log(cal.mul('12.32', '7'))

  1. plus plus operating, you can pass number or string
var cal = require('awesome-calculator')
console.log(cal.plus('0.1', '0.2'))

License

MIT

Package Sidebar

Install

npm i awesome-calculator

Weekly Downloads

3

Version

2.0.0

License

MIT

Unpacked Size

108 kB

Total Files

7

Last publish

Collaborators

  • olyy111