Skip to content

olyy111/awesome-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published