1.1.0 • Published 2 years ago
gcsandesh-math v1.1.0
GCSANDESH-MATH
A node module that allows basic math operations on two numbers.
Operations available
- add(a,b) adds two numbers
- subtract(a,b) subtracts second number from first number
- multiply(a,b) multiplies two numbers
- divide(a,b) divides first number by second number
- swap(a,b) returns an array with swapped items
- randomNumber(n) returns a random number between 0 and n
- randomBetween(a,b) returns a random number between numbers: 'a' and 'b'
- display(item) similar to console.log()
Author
--- Sandesh GC |- GitHub |- Twitter