calculate-fast
v1.3.0
Published
npm Package to calculate faster than ever before
Downloads
4
Readme
calculate-fast
Returns number from calculation.
Install
Install with npm:
$ npm install calculate-fast
Important
Currently supports only two numbers, and 4 equations, (+ - / *) . Numbers need to be positive, first number needs to be smaller than 1000, second number needs to be smaller than 350
Usage
You need to pass two numbers, and operator to function "CalculateFast()", if given something wrong, it will return 'false'
const even = require('calculate-fast')
console.log(CalculateFast(1, 11, "+")) //=> "12"
console.log(CalculateFast(203, 198, "-")) //=> "5"
console.log(CalculateFast(6, 20, "*")) //=> "120"
console.log(CalculateFast(200, 2, "/")) //=> "100"
console.log(CalculateFast(999, 0, "/")) //=> false
Author
lasgra