Licence
ISC
Version
0.1.0
Deps
0
Vulns
0
Weekly
0
darren-super-calculator
** Description **
darren-super-calculator is a library to use to make calculation easier.
** Installation **
npm install darren-super-calculator --save
** Usage **
** calculator(whatTodo) **
The parameter whatTodo is a string, you can enter one or more function from above, and if you use more than one function, you have to use 'zidane:' as separation :
- p(stringNumberCommaSeparated)
This is to sum calculation - m(stringNumberCommaSeparated)
This is to substract calculation - x(stringNumberCommaSeparated)
This is to multiply calculation - d(stringNumberCommaSeparated)
This is to divide calculation
** Example of usage **
let result = calculator('x(10,3)zidane:m(2,8)zidane:d(2,3)');