calculate-fast

1.3.0 • Public • Published

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


Package Sidebar

Install

npm i calculate-fast

Weekly Downloads

1

Version

1.3.0

License

ISC

Unpacked Size

97.2 MB

Total Files

3

Last publish

Collaborators

  • lasgra