basic-calculations
v1.0.2
Published
calculator
Downloads
2
Readme
This is simple calculator receives 2 numbers and returnd a result based on:-
Addition
- add(num1,num2) returns num1 + num2
substration
- sub(num1,num2) returns num1 - num2
Divition
- div(num1,num2) returns num1 / num2
Multiplication
- mul(num1,num2) returns num1 * num2
Modules (division reminder)
#5 . mod(num1,num2) returns num1 % num2
------------------
Install dependency
npm i calculator
import module
const {add, sub, div, mul, mod} = require('calculator')
EX:
mul(9,9) //returns 81
console.log(mul(9,9)) //81