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

Add ecma-262 number formatting option #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

exjesper
Copy link

ecma-262 (ES6) is commonly used with json and has specific rules for NumberToString formatting.
This PR adds an option to have ES6 like number formatting for the internal dtoa implementation.
See: http://www.ecma-international.org/ecma-262/10.0/index.html#sec-tostring-applied-to-the-number-type

Inspired by:
golang/go@92b3e36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant