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

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
Closed
Assignees

Comments

@paulmdavies
Copy link

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
Copy link
Member

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
Projects
None yet
Development

No branches or pull requests

2 participants