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

"~" option incorrectly trims significant zeroes with "e" option #95

Closed
twoz opened this issue Jul 1, 2020 · 1 comment
Closed

"~" option incorrectly trims significant zeroes with "e" option #95

twoz opened this issue Jul 1, 2020 · 1 comment

Comments

@twoz
Copy link

twoz commented Jul 1, 2020

This does not seem to be correct behavior:

> d3.format("~e")(98765432190)
"9.876543e+1" // <- zero removed here???
> d3.format("e")(98765432190)
"9.876543e+10"
@mbostock
Copy link
Member

mbostock commented Jul 1, 2020

Duplicate of #83. Fixed in #86 v1.4.3 (d3 v5.15.0).

@mbostock mbostock closed this as completed Jul 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants