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

Avoid displaying Double.MIN_VALUE as max value #3

Open
GoogleCodeExporter opened this issue May 14, 2015 · 2 comments
Open

Avoid displaying Double.MIN_VALUE as max value #3

GoogleCodeExporter opened this issue May 14, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

If all values are 0.0 then Max will be Double.MIN_VALUE. This looks strange.

You should put his before print out max value:

if(max==Double.MIN_VALUE) max = 0.0;



Original issue reported on code.google.com by bva...@zuriel.net on 4 Apr 2011 at 9:15

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

A possible solution is to replace in SparklinesGWT.java the line 283:
 max = Double.MIN_VALUE;

with

max = - Double.MAX_VALUE;

since Double.MIN_VALUE is the minimum *positive* value that a double can have.

Original comment by ghi...@gmail.com on 23 Jan 2013 at 9:34

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

1 participant