Hacker GitHub

← All repos

tc39/proposal-decimal

View on GitHub ↗ ★ 639 HTML

Built-in exact decimal numbers for JavaScript

12 mentions on Hacker News by 10 people: 2 stories, 10 comments · first 2020-05-14 · latest 2025-04-16

Mentions per year 12 mentions · busiest year 2022 (4)
20082026
  1. …about adding BigInt (not to mention recently dropping the record/tuple proposal over `===`). https://github.com/tc39/proposal-decimal
    comment by hajile · 2025-04-16 · in What I don't like in JavaScript
  2. …decimals, to avoid things like `parseInt(0.00000051) === 5`? There is a draft proposal for this: https://github.com/tc39/proposal-decimal Additionally, BigInt has been available for years: https://developer.mozilla.org/en-US/docs/Web/JavaSc…
    comment by creatonez · 2024-08-24 · in JavaScript dates are about to be fixed
  3. …yourself in a library. Regardless, there is an active proposal to add a 128-bit decimal type to JS: https://github.com/tc39/proposal-decimal
    comment by paavohtl · 2024-06-26 · in The many faces of undefined in JavaScript
  4. …are currently sponsoring Igalia to work on adding native Decimal number support to JavaScript. https://github.com/tc39/proposal-decimal This is an active proposal and was last discussed in the September 2023 meeting.
  5. …of C# or Python via Javascript, thus not having to wait for the TC39 spec / implementation? [1] [1] https://github.com/tc39/proposal-decimal
  6. …for instance, the decimal proposal is still at stage 1 [1]. and no, BigInt does not solve that. [1] https://github.com/tc39/proposal-decimal
    comment by dlojudice · 2022-07-17 · in Integer math in JavaScript
  7. There is a stage 1 proposal for BigDecimal. https://github.com/tc39/proposal-decimal
    comment by runarberg · 2022-03-17 · in Deno Is Webby
  8. There's a proposal to add a decimal type to the spec, too. https://github.com/tc39/proposal-decimal Seems like it's a long ways away from being available, though.
    comment by dvlsg · 2021-06-28 · in JavaScript Is Weird
  9. …for `Decimal` (base 10 floating point numbers with arbitrary precision) is currently at stage 1: https://github.com/tc39/proposal-decimal
    comment by rauschma · 2021-06-10 · in Deep JavaScript
  10. …+ dynamic language + better math support = perfect environment for many applications out there [1] https://github.com/tc39/proposal-decimal
    comment by dlojudice · 2021-06-02 · in Stage 3 Proposal: Array.prototype.at