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

Incorrect Rounding #90

Closed
joshlacey opened this issue Mar 2, 2020 · 1 comment
Closed

Incorrect Rounding #90

joshlacey opened this issue Mar 2, 2020 · 1 comment

Comments

@joshlacey
Copy link

When I create a function as below:
const round = d3.format('.1f')

And I use it like this:
round(1.15)

Expected Output: "1.2"
Actual Output: "1.1"

@mbostock
Copy link
Member

mbostock commented Mar 2, 2020

Duplicate of #27.

@mbostock mbostock closed this as completed Mar 2, 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