Wednesday, May 30, 2018
Smallest negative double in Java
In Java Double.MIN_VALUE is the smallest positive double value. This different for Integer and Long classes: Integer.MIN_VALUE and Long.MIN_VALUE are the smallest negative values. If you want to use the smallest negative double value, you have to use -1*Double.MAX_VALUE.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment