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

0.995 rounded to 0.00 in tooltip when set to show two decimal places #6088

Closed
paulmdavies opened this Issue Dec 5, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@paulmdavies

paulmdavies commented Dec 5, 2016

Expected behaviour

Tooltip should display 1.00 for value of 0.995 when set to show two decimal places

Actual behaviour

Tooltip displays 0.00

Live demo with steps to reproduce

http://jsfiddle.net/m59yzt9a/

Affected browser(s)

Firefox, Chrome

@oysteinmoseng oysteinmoseng self-assigned this Dec 6, 2016

@oysteinmoseng oysteinmoseng added the Bug label Dec 6, 2016

@oysteinmoseng

This comment has been minimized.

Show comment
Hide comment
@oysteinmoseng

oysteinmoseng Dec 6, 2016

Collaborator

Thank you for reporting. It seems the issue is that we are rounding the decimal places separately, so the rounded decimals don't carry over to the integer part.

Internal note: It fails in Utilies - Highcharts.numberFormat.

Collaborator

oysteinmoseng commented Dec 6, 2016

Thank you for reporting. It seems the issue is that we are rounding the decimal places separately, so the rounded decimals don't carry over to the integer part.

Internal note: It fails in Utilies - Highcharts.numberFormat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment