tc39 / proposal-intl-numberformat-v3

Additional features for Intl.NumberFormat to solve key pain points.
MIT License
53 stars 12 forks source link

Can ToRawPrecision and ToRawFixed be made more deterministic? #123

Open gibson042 opened 1 year ago

gibson042 commented 1 year ago

They currently require "solving" equations like x = a × 10b, which is cumbersome and obtuse. Adopting and extending https://github.com/tc39/ecma262/pull/2471 would seem like a better approach.

sffc commented 1 year ago

I did a bit of editorial work in this area in NFv3 to attempt to make the spec clearer to read and understand, but not necessarily implement.

I'd prefer to move this issue to ECMA-402 to resolve after NFv3 is merged in, since this can be done editorially.