1.0.1 • Published 3 years ago

basic-calculator-util v1.0.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

Image Image

Image

NodeJS Import

const {
    add,
    subtract,
    division,
    percentage,
    multiplication,
    bigger,
    smaller,
    random
} = require("basic-calculator");

TypeScript Import

import {
    add,
    subtract,
    division,
    percentage,
    multiplication,
    bigger,
    smaller,
    random
} from "basic-calculator";

Methods

//add
add(10, 30); //==> 40

//subtract
subtract(10, 30); //==> -40

//multiplication
multiplication(10, 30); //==> 100

//division
division(10, 30); //==> 40

//multiplication
percentage(10, 30); //==> 0

//bigger
bigger(10, 30); //==> false

//smaller
smaller(10, 30); //==> true

//random
random(10, 30) //==> 10/30

You can reach Emirhan77#0001 on Discord to report a bug.

1.0.1

3 years ago

1.0.0

3 years ago