Smallest Double Number For Java

Apr 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?

❤️ Is this article helpful?

Buy me a coffee ☕ or support my work via PayPal to keep this space 🖖 and ad-free.

Do send some 💖 to @d_luaz or share this article.

✨ By Desmond Lua

A dream boy who enjoys making apps, travelling and making youtube videos. Follow me on @d_luaz

👶 Apps I built

Travelopy - discover travel places in Malaysia, Singapore, Taiwan, Japan.