bignumber.js VS safe-decimal

Compare bignumber.js vs safe-decimal and see what are their differences.

SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
bignumber.js safe-decimal
16 2
6,533 43
- -
3.7 6.4
16 days ago 11 months ago
JavaScript Rust
MIT License -
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

bignumber.js

Posts with mentions or reviews of bignumber.js. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-03.

safe-decimal

Posts with mentions or reviews of safe-decimal. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-23.
  • Solving the "floating point precision" problem with... floats?
    2 projects | /r/rust | 23 May 2023
    I've published this article with what I've learned, and did a Rust implementation on this repo https://github.com/voliva/safe-decimal
    2 projects | dev.to | 22 May 2023
    I've implemented this in Rust, and a Typescript implementation is on the way. You can find the repo here. I've called it SafeDecimal. I won't go in detail on the implementation, but let's compare it with the other usual approaches.

What are some alternatives?

When comparing bignumber.js and safe-decimal you can also consider the following projects:

jsbi-calculator - JSBI-Calculator is an IE11-compatible calculator utility to perform arbitrary (up to 18 decimals) arithmetic computation, with the help of JSBI-based BigDecimal.

web3modal - A single Web3 provider solution for all Wallets

eslint-plugin-big-number-rules - Enforce (or automatically fix) finance-safe calculations using BigNumber or similar libraries.

abitype - Strict TypeScript types for Ethereum ABIs

token-lists - πŸ“š The Token Lists specification

permit2 - πŸ”‘πŸ”‘πŸ”‘ next generation token approvals mechanism

jotai-form - Form atoms for Jotai

proposal-decimal - Built-in decimal datatype in JavaScript

paymentGateway

banned - Banned from a site or organization? Account suspended? Censored? Why?

decimal.js - An arbitrary-precision Decimal type for JavaScript