Skip to content
/ arb Public

A arbitrary multi-precision library for operating large numbers represented as strings

License

Notifications You must be signed in to change notification settings

pvzzombs/arb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

arb

A arbitrary multi-precision library for operating large numbers represented as strings

Build Status Build Status CodeFactor DeepScan grade Release

Installation

Node

  1. Clone or download the repository
git clone https://github.com/pvzzombs/arb.git
cd arb
  1. Run npm install
npm install
  1. Install as a dev dependency (Inside another node project or npm package)
npm install --save-dev path/to/arb

Example:

const arb = require("arb");

console.log(arb("1").add("1"));

Browser

  1. Clone or download the repository
git clone https://github.com/pvzzombs/arb.git
cd arb
  1. Run npm install
npm install
  1. Make a directory named dist if it does not exist
mkdir dist
  1. Run npm run build
npm run build
  1. Grab and include arb.min.js in your project

Example:

<script src="arb.min.js"></script>
<script>
  console.log(arb("1").add("1"));
</script>

Examples : (Documentation will come soon)

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

About

A arbitrary multi-precision library for operating large numbers represented as strings

Resources

License

Stars

Watchers

Forks

Packages

No packages published