Just did this:
double val1=numeric_limits::max();
cout.precision(70);
cout<<\"\\nVal1: \"<
In Windows I sta
The Wikipedia entry on double precision defines the bounding errors for translation between decimal digits and double values very succinctly:
This gives from 15 - 17 significant decimal digits precision. If a decimal string with at most 15 significant decimal is converted to IEEE 754 double precision and then converted back to the same number of significant decimal, then the final string should match the original; and if an IEEE 754 double precision is converted to a decimal string with at least 17 significant decimal and then converted back to double, then the final number must match the original.