cli-mathematic
A lib to use mathematical operators
Note: need node >= 6
Usage
const math = ; math; // 3/* You can use arrays */math; // 150math; // 12math; // 518math; // 0.75
API
sum(numbers)
Parameter | Type | Value |
---|---|---|
numbers | number or array | any number (in array or not) |
sub(numbers)
Parameter | Type | Value |
---|---|---|
numbers | number or array | any number (in array or not) |
multi(numbers)
Parameter | Type | Value |
---|---|---|
numbers | number or array | any number (in array or not) |
div(numbers)
Parameter | Type | Value |
---|---|---|
numbers | number or array | any number (in array or not) |