Reputation: 99
What is the biggest integer value can be represented by double in Java? And what is the biggest value can be represented with the maximum digits after the point? Is it depends number of digits before point on maximum number of digits after the point? There are two fields in the class Double: MAX_VALUE and MIN_VALUE. What is the MAX_VALUE sense?
Upvotes: 0
Views: 9802
Reputation: 9103
The biggest integer value represented by double is : 2^53 , for details look here.
And the biggest value can be represented with max digits after the point depends on the number itself, but the max number of digits (for example when representing 0.1
) is 0.1000000000000000055511151231257827021181583404541015625
have a look at this answer.
And the MAX_VALUE represents : (2-2^-52)·2^1023 (have a look at min and max values at this answer)
Upvotes: 4