How to determine the max precision for double
问题 I am trying to determine what the maximum precision for a double is. In the comments for the accepted answer in this link Retain precision with double in Java @PeterLawrey states max precision in 15. How do you determine this ? 回答1: @PeterLawrey states max precision in 15. That's actually not what he stated at all. What he stated was: double has 15 decimal places of accuracy and he is wrong. They have 15 decimal digits of accuracy. The number of decimal digits in any number is given by its