1.0.0 • Published 4 years ago

@larchanka/aritm v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

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
1.0.0

4 years ago