Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decimal integration #856

Open
jessealama opened this issue Jan 31, 2024 · 1 comment
Open

Decimal integration #856

jessealama opened this issue Jan 31, 2024 · 1 comment
Labels
c: numbers Component: numbers, currency, units s: discuss Status: TG2 must discuss to move forward

Comments

@jessealama
Copy link

It would be good to talk about how to integrate decimals into Ecma 402. One area that needs discussion is what NumberFormat should do with such objects. What kind of API should decimal have that would make things great from the Ecma 402 perspective? We've discussed the issue of trailing zeros in the underlying data model for decimals, and that's the direction we intend to go. To get the discussion started, here are some questions on my mind:

  • Should Decimal's toString throw if one requests, say, more significant digits than are available?
  • Should Decimal throw when one asks for, say, more fractional digits than are available?
  • What if one asks for fewer significant digits than are available in the integer part of a Decimal? E.g., one has the decimal value 123.45` and you ask for 2 significant digits.
  • Are there other places in the Ecma 402 world besides NumberFormat where Decimal might be able to help out?
@sffc sffc added s: discuss Status: TG2 must discuss to move forward c: numbers Component: numbers, currency, units labels Jan 31, 2024
@sffc
Copy link
Contributor

sffc commented Feb 23, 2024

@sffc sffc moved this to Previously Discussed in ECMA-402 Meeting Topics Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: numbers Component: numbers, currency, units s: discuss Status: TG2 must discuss to move forward
Projects
Status: Previously Discussed
Development

No branches or pull requests

2 participants