csmath
v1.11.2
Published
A simple math operation functions npm test
Downloads
2
Readme
Custom-Simple-Math
A simple math library
Install
Using npm :
npm i -S custom-simple-math
Usage
const math = require('custom-simple-math');
let multNums = math.multiply(1,2,3,4,5);
console.log(multNums);
let addNums = math.add(1,2,3,4,5);
console.log(addNums);
let subNums = math.subtract(5 , 7);
console.log(subNums);
let divNums = math.divide(5 , -7);
console.log(divNums);
let divNums2 = math.divide(-14 , -7);
console.log(divNums2);
let avg = math.average(14, 25, 30, 5, 10);
console.log(avg);
let isEvenNum = math.isEven(14);
console.log(isEvenNum);