1.0.2 • Published 1 year ago

calculatornpms v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

calculatornpms

Description

A simple calculator library for performing basic arithmetic operations such as addition, subtraction, multiplication, and division.

Installation

You can install this library via npm:

npm i calculatornpms

Usage

const calculator = require('calculatornpms');

// Add two numbers
const sum = calculator.add(5, 3); // Output: 8

// Subtract two numbers
const difference = calculator.subtract(10, 4); // Output: 6

// Multiply two numbers
const product = calculator.multiply(6, 7); // Output: 42

// Divide two numbers
const quotient = calculator.divide(20, 4); // Output: 5

API

add(a, b)

Adds two numbers a and b and returns the result.

subtract(a, b)

Subtracts b from a and returns the result.

multiply(a, b)

Multiplies two numbers a and b and returns the result.

divide(a, b)

Divides a by b and returns the result.

License

This library is licensed under the ISC License.

Author

Created by Yugal.

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago