autoarithm
v1.0.0
Published
To calculate addition, substraction, multiplication, division
Downloads
1
Readme
arithmetic-op
A simple utility library for performing basic mathematical operations in JavaScript.
Installation
You can install this package using npm:
npm install autoarith
Usage
Import the arithmetic-op library
const math = require('autoarith');
Example usage
console.log(math.add(5, 3)); ## Output: 8 console.log(math.subtract(10, 4)); ## Output: 6 console.log(math.multiply(2, 6)); ## Output: 12 console.log(math.divide(8, 2)); ## Output: 4
Available Functions
Basic Arithmetic
add(a, b): Addition of two numbers. subtract(a, b): Subtraction of two numbers. multiply(a, b): Multiplication of two numbers. divide(a, b): Division of two numbers.
License
This project is licensed under the ISC License - see the LICENSE file for details.