MikeMcl/decimal.js
View on GitHub ↗ ★ 7,270 JavaScript
An arbitrary-precision Decimal type for JavaScript
5 mentions on Hacker News by 4 people: 1 story, 4 comments · first 2014-11-28 · latest 2024-02-20
20082026
-
For JS for example https://github.com/MikeMcl/decimal.js The trick is 90% just realizing these types of libraries exist so if and when you run into these requirements you’re not reinventing the wheel on some of these issues.
comment by user3939382 · 2024-02-20 · in Floats Are Weird -
…BigInt this year. Just like .net, there's decimal libraries available if you know to use them. https://github.com/MikeMcl/decimal.js/ The real takeaway is that modern processors should definitely add hardware support for decimal numbers.
comment by hajile · 2021-06-28 · in JavaScript Is Weird -
…a decimal class in their standard library, it's usually pretty clunky to use; no better than, say, https://github.com/MikeMcl/decimal.js/ C# is perhaps the best among mainstream languages, although its implementation is a bit weird.
comment by SloopJon · 2020-04-21 · in Vercel, formerly Zeit, raises $21M Series A -
…style feels relatively consistent so there must be some reasoning behind these decisions. [0] https://github.com/MikeMcl/decimal.js/blob/master/decimal.js...
comment by goblin89 · 2014-11-29 · in Decimal.js, arbitrary-precision decimal type for JavaScript -
▲ 72
Decimal.js, arbitrary-precision decimal type for JavaScriptstory by goblin89 · 2014-11-28 · 4 comments