Smallest Double Number For Java

April 22, 2018

The smallest negative number for Double is -Double.MAX_VALUE

MAX_VALUE: A constant holding the largest positive finite value of type double.

1.7976931348623157E308

Double.MAX_VALUE.toBigDecimal().toPlainString()

Up to 309 digits: 17976931348623157…000

The smallest positive number for Double is Double.MIN_VALUE (Imagine 0.0000...)

MIN_VALUE: A constant holding the smallest positive nonzero value of type double.

4.9E-324

Double.MIN_VALUE.toBigDecimal().toPlainString())

Up to 325 decimal places: 0.0…049

Interesting NOTE: Why double.MaxValue is larger than long.MaxValue?

This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.