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. Learn more →
Top 3 JavaScript arbitrary-precision Projects
-
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.
Project mention: eslint-plugin-big-number-rules: Enforce finance-safe calculations (helps 0.1 + 0.2 really equal 0.3) | /r/javascript | 2023-06-03If you use floating-points for currency (instead of whole-numbers like you probably should) libraries like bignumber.js help keep your code away from the binary floating-point pitfalls of IEEE-754 which manifests in the standard JavaScript number type:
Project mention: Decoding Why 0.6 + 0.3 = 0.8999999999999999 in JS and How to Solve? | dev.to | 2023-11-16ii) Third-Party Libraries There are various libraries like math.js, decimal.js, big.js that solve the problem. Each library functions according to its documentation. This approach is comparatively better.
JavaScript arbitrary-precision related posts
- Floats Are Weird
- Decoding Why 0.6 + 0.3 = 0.8999999999999999 in JS and How to Solve?
- Front-End Dilemmas: Tackling Precision Problems in JavaScript with Decimal.js
- Rant - Javascript should be able to do simple f**king math by now
- eslint-plugin-big-number-rules: Enforce finance-safe calculations (helps 0.1 + 0.2 really equal 0.3)
- Solving the "floating point precision" problem with... floats?
- COBOL: You’re thinking about it wrong – GCN
-
A note from our sponsor - SurveyJS
surveyjs.io | 27 Apr 2024
Index
What are some of the best open-source arbitrary-precision projects in JavaScript? This list will help you:
Project | Stars | |
---|---|---|
1 | bignumber.js | 6,517 |
2 | decimal.js | 6,113 |
3 | big.js | 4,679 |
Sponsored