A big integer library for JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test Restructure tests. Jun 21, 2015
.gitignore Added .gitignore file Mar 12, 2009
LICENSE Added MIT license info Mar 12, 2009
README.md Add basic usage to the README Jun 15, 2017
biginteger.js Bump version number. Jun 21, 2015
build-docs Added NaturalDocs documentation Mar 12, 2009
run-test Added tests Mar 18, 2009

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.