A Comparison of the BigNumber Libraries in JavaScript

Protofire.io
Protofire Blog
Published in
2 min readNov 14, 2019

Learn which JavaScript library is a good fit for performing arbitrary-precision arithmetic.

In JavaScript, it’s challenging to work with large numbers and perform arbitrary-precision arithmetic. That’s where the BigNumber libraries come to the rescue.

This blog post explores seven JavaScript libraries across several criteria, such as available features, API functionality, and compatibility with the Ethereum ecosystem.

The article also compares the components supported by different libraries: integer values, floating-point numbers, inputs from other bases, and scientific notation. With code samples, you can take a close look at the API feature sets. Furthermore, the blog post examines the BigNumber libraries that can be used by the main client libraries on Ethereum.

A code sample of the API feature sets (Image credit)

Finally, you get recommendations on the best option to choose, given your particular use case. To learn more, read the full article.

--

--

Protofire.io
Protofire Blog

We help token-based startups with protocol & smart contract engineering, high-performance trusted data feeds (oracles), and awesome developer tools (SDKs/APIs).