3 ms·
16 decimal places (really about 15.9 decimal places) is what you get with double-precision floating point. Double-double would be about 31 digits, and quad pre
by pclmulqdq 2y ago
16 decimal places (really about 15.9 decimal places) is what you get with double-precision floating point.
Double-double would be about 31 digits, and quad precision would get you 34.
Single-precision gets you a bit more than 7 digits.
- zamadatix 2y agoThe double representation of pi just so happens to be accurate to precisely 15 digits even though the general amount of precision is slightly higher.
- zamadatix 2y agoMissed in my other response: Double gives about double the precision, not 4 times, that of a single: "The 53-bit significand precision gives from 15 to 17 significant decimal digits precision (2−53 ≈ 1.11 × 10−16). If a decimal string with at most 15 significant digits is converted to the IEEE 754 double-precision format, giving a normal number, and then converted back to a decimal string with the same number of digits" (from Wikipedia)