JavaScript
Switch branches/tags
Nothing to show
Clone or download
Latest commit 6384962 Jun 15, 2017
Permalink
Failed to load latest commit information.
test
.gitignore
LICENSE
README.md
biginteger.js
build-docs
run-test

README.md

javascript-biginteger

Gitter

Usage

In Node.js

const BigInteger = require('./path/to/biginteger').BigInteger;
var a = BigInteger('123456789');
var b = BigInteger('10000000000');
var c = BigInteger('987654321');

console.log(a.multiply(b).add(c).toString()); // '1234567890987654321'

In a web browser

<script src="path/to/biginteger.js"></script>
<script>
    var a = BigInteger('123456789');
    var b = BigInteger('10000000000');
    var c = BigInteger('987654321');

    console.log(a.multiply(b).add(c).toString()); // '1234567890987654321'
</script>

For more details, see the full API documentation.