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

-Infinity is formatted as Infinity #42

Closed
hellochar opened this issue Feb 22, 2017 · 1 comment
Closed

-Infinity is formatted as Infinity #42

hellochar opened this issue Feb 22, 2017 · 1 comment
Assignees

Comments

@hellochar
Copy link

hellochar commented Feb 22, 2017

https://runkit.com/58a5c70825e6da001336e870/58ae0f92ef3db20014828aae

var d3Format = require("d3-format")

d3Format.format(".3e")(-Infinity) // returns "Infinity"

Is this expectated behavior?

@hellochar hellochar changed the title "-Infinity is formatted as "Infinity" -Infinity is formatted as Infinity Feb 22, 2017
@mbostock mbostock self-assigned this Feb 23, 2017
@mbostock
Copy link
Member

This appears to be a bug in our test for negative zero. https://github.com/d3/d3-format/blob/master/src/locale.js#L63

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