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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.00latest

Version History

VersionDownloads (Last 7 Days)Published
2.0.00
1.1.53
1.1.40
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00

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