A arbitrary multi-precision library for operating large numbers represented as strings
- Clone or download the repository
git clone https://github.com/pvzzombs/arb.git
cd arb
- Run
npm install
npm install
- Install as a dev dependency (Inside another node project or npm package)
npm install --save-dev path/to/arb
const arb = require("arb");
console.log(arb("1").add("1"));
- Clone or download the repository
git clone https://github.com/pvzzombs/arb.git
cd arb
- Run
npm install
npm install
- Make a directory named
dist
if it does not exist
mkdir dist
- Run
npm run build
npm run build
- Grab and include
arb.min.js
in your project
<script src="arb.min.js"></script>
<script>
console.log(arb("1").add("1"));
</script>
arb("12").add("12"); //returns "24.0"
arb("12").sub("2"); //returns "10.0"
arb("12").mul("12"); //returns "144.0"
arb("12").div("12"); //returns "1.0"
arb("12").pow("12"); //returns "8916100448256.0"
LICENSE: MIT