@larchanka/aritm
v1.0.0
Published
A module with simple arithmetical functions.
Downloads
2
Readme
arithm
A module with simple arithmetical functions.
For lowest level arithmetical expressions can be used arithm.
- addition - arithm.getSum(num1, num2)
- subtraction - arithm.getDifference(num1, num2)
- multiplication - arithm.getProduct(num1, num2)
- division - arithm.getQuotient(num1, num2)
Usage examples:
arithm.getSum(4, 3) //otput: 7
arithm.getDifference(9, 5) //otput: 4
arithm.getProduct(2, 8) // output: 16
arithm.getQuotient(12, 6) //otput: 2