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

NumberFormat: new style scientific #164

Closed
ray007 opened this issue Aug 24, 2017 · 5 comments
Closed

NumberFormat: new style scientific #164

ray007 opened this issue Aug 24, 2017 · 5 comments
Assignees
Labels
c: numbers Component: numbers, currency, units s: in progress Status: the issue has an active proposal

Comments

@ray007
Copy link

ray007 commented Aug 24, 2017

ICU number formatting has an option for scientific formatting which would be nice to have in NumberFormat too.
Needs #163 first.

@darknoon
Copy link

Funny timing, I was just coming here to ask for this / start a proposal and saw this issue opened. 🕺🏻

@caridy caridy added the s: help wanted Status: help wanted; needs proposal champion label Sep 28, 2017
@caridy
Copy link
Contributor

caridy commented Sep 28, 2017

We need to format proposal, and a champion :)

@littledan littledan self-assigned this Oct 12, 2017
@littledan littledan added the Small Smaller change solvable in a Pull Request label Dec 13, 2017
@sffc
Copy link
Contributor

sffc commented Feb 12, 2018

See my follow-up in #215

@sffc sffc added s: in progress Status: the issue has an active proposal c: numbers Component: numbers, currency, units and removed s: help wanted Status: help wanted; needs proposal champion Small Smaller change solvable in a Pull Request labels Mar 19, 2019
@anba
Copy link
Contributor

anba commented Mar 16, 2020

The new notation option allows to specify a "scientific" output style.

js> print(new Intl.NumberFormat('en', { notation: "scientific" }).format(1000))
1E3

@sffc
Copy link
Contributor

sffc commented Mar 16, 2020

Yep, the proposal is Stage 4 and merged. Closing as Fixed

@sffc sffc closed this as completed Mar 16, 2020
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: in progress Status: the issue has an active proposal
Projects
None yet
Development

No branches or pull requests

6 participants