Menu - Top - Home - Donate to Me

BigNumber

Download source code: ZIP file

If you like this software, consider donating to me at this link: http://peteroupc.github.io/


An arbitrary-precision arithmetic library for JavaScript.

Demo: https://peteroupc.github.io/BigNumber/demo/

Installation

NPM

To install, run the following:

npm install peteroupc/BigNumber

or

npm install bignumber-poupc

You may need to install the latest version of Node.js or use npm version 1.3.15 or later.

Usage

var bn=require("bignumber-poupc"),
      BigInteger=bn.BigInteger,
      ExtendedDecimal=bn.ExtendedDecimal,
      ExtendedFloat=bn.ExtendedFloat;

var num=BigInteger.valueOf(2000);

For API documentation, see the CBOR-Java wiki. Although the wiki describes the Java version, the JavaScript version uses almost the same methods for BigInteger, ExtendedDecimal, and ExtendedFloat.

History

Version 1.2.1

Version 1.2

Version 1.1.1

Version 1.1