• Stars
    star
    184
  • Rank 209,187 (Top 5 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 16 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A big integer library for JavaScript

javascript-biginteger

Gitter

Usage Examples

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>

Documentation

API Documentation