1.3.0 • Published 2 years ago

calculate-fast v1.3.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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


1.3.0

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago