UNPKG

@toadless/math.x

Version:

A simple math module using classes.

37 lines (25 loc) 643 B
# Math.X Math.X is a simple library made by toadless for adding, subtracting, multiplying, and dividing. ## Installation Use the package manager [npm](https://www.npmjs.com/package/@toadless/math.x) to install mathx. ```npm npm i @toadless/math.x ``` ## Usage ```js const Math = require('@toadless/math.x') const math = new Math.Math(<number1>, <number2>) // There are different ways to use it. // You can add number1 to number2 or multiply or // subtract or divide. /*Add*/ math.add() /*Subtract*/ math.subtract() /*Mulitply*/ math.multiply() /*Divide*/ math.divide() ``` ## License [MIT](https://choosealicense.com/licenses/mit/)