mobimath
v1.0.2
Published
A basic math package that anyone can use. Add, Subtract, Multiply, Divide
Readme
Hi! Looks like you've installed my package, Here's a rundown of how you can use this package
of course, you'll need to do this before you get started:
const 'name-of-your-variable' = require('mobimath')
Then to get started, make sure you do 'name-of-your-variable' . 'function-type'
List of functions:
addThis(any a, any b) : Gets any type of number, adds them, and returns sum
subtractThis(any a, any b) : Get any type of number, subtracts them, and returns sum
multiplyThis(any a, any b) : Gets any type of number, multiplies them, and returns sum
divideThis(any a, any b) : Gets any type of number, divides them, and returns sum
Examples of code:
const math = require('mobimath')
console.log(math.addThis(3,5)) prints 8
console.log(math.divideThis(2, 8)) prints 0.25
console.log(math.subtractThis(8, 8)) prints 0
console.log(math.multiplyThis(10, 4)) prints 40
