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

Improper significant figures getting calculated #135

Closed
ghansham opened this issue Jan 20, 2021 · 0 comments
Closed

Improper significant figures getting calculated #135

ghansham opened this issue Jan 20, 2021 · 0 comments

Comments

@ghansham
Copy link

Assuming a range of 477 to 945.
The values for labels get calculated as 477, 594, 711, 828, 945.
sigfigs value gets calculated as 1. which rounds off 477 to 480 and 945 to 950.

int sigfigs = (int) Math.ceil(Math.log10(max / minDiff));

Can something be done to calculate it correctly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant