A single/double/extended-precision floating-point representation of Pi is accurate up to how many decimal places?
相关问题
- Floating point again
- Is there a functional difference between “2.00” an
- How are these double precision values accurate to
- Having trouble rounding in c
- Having trouble rounding in c
相关文章
- How can I convert a f64 to f32 and get the closest
- Macro or function to construct a float (double) fr
- Math.Max vs Enumerable.Max
- `std::sin` is wrong in the last bit
- Rounding problem with rspec tests when comparing f
- PI and accuracy of a floating-point number
- String.format uses comma instead of point
- How are floating point array indices interpreted?
World of PI have PI to 100,000,000,000 digits, you could just print and compare. For a slightly easier to read version Joy of PI have 10,000 digits. And if you want to remember the digits youself you could try lerning the Cadaeic Cadenza poem.
In the x86 floating-point unit (x87) there are instructions for loading certain floating point constants. "fldz" and "fld1" load 0.0 and 1.0 onto the stack top "st" (aka "st(0)") for example. Another is "fldpi".
All these values have a mantissa that's 64 bits long which translates into close to 20 decimal digits. The 64 bits are possible through the 80-bit tempreal floating point format used internally in the x87. The x87 can load tempreals from and store them to 10 byte memory locations as well.
6 places and 14 places.1 place is over 0 for the 3, and the last place although stored can't be considered as a precision point.
And sorry but I don't know what extended means without more context. Do you mean C#'s decimal?
Results: