|There's more than one way to do things|
Re^3: RFC: Getting Started with PDL (the Perl Data Language)by zentara (Archbishop)
|on Feb 04, 2007 at 17:03 UTC||Need Help??|
I'm not a c compiler expert, but have a look at double precision pi It may be the difference between computational precision and "%Lf" display precision. I started looking into it, when I questioned the way GLib defined pi as a constant. They defined it out to 50 decimal places, but any use of it in it's long double is limited to 15 decimal places.
One of the c gurus in that thread said that c's precision is only gauranteed to 10 decimal places, but with IEEE standards, it's common to see 15. I see 15.
Eventually, I found mpfr which lets you set how many digits of precision you want to use.
If you can show me a simple c program that computes and displays values out to 50 decimal places, with normal c, I would be greatful. Everything I see truncates it (pi) to 3.(15 decimal places).
For example, in this code, the value of pi is correctly printed as a string on the first line of output, but the subsequent lines all have garbage after the 15th decimal place.
I'm not really a human, but I play one on earth. Cogito ergo sum a bum