npm.io
2.1.3 • Published 6 years ago

olams

Licence
ISC
Version
2.1.3
Deps
0
Size
1 kB
Vulns
0
Weekly
0

Library with basic arithmetic functions

To get started use:

npm install olams

Basic Usage

To import into your project after installation

const olams = require('olams')

use the add function

const addNum = olams.add(1,2)

use the power function

const expNum = olams.pow(1,2)

use the subtraction function

const subNum = olams.sub(1, 2)

use the divide function

const divNum = olams.divide(1, 2)

use the multiply function

const multNum = olams.mult(1, 2)

use the modulus function

const modNum = olams.mod(1, 2)