|
|
|
|
|
by Zenst
5004 days ago
|
|
Impressive stuff, though what struck me was the results, least accuracy wise and what rounding they using: Pi is 3.14159 26535 89793 238.... So I do wonder what rounding they are using, even truncating as I have (next digit 4 so good place to do that) then can see the last digit should at least be 8, worst case 7 and 6!! There again this may be a convention or result of the methord to calulate Pi. As for floats, well, for accuracy I'd go with cdecimal right there, though is it as accurate. I suspect it is the formular used that induces the minute error in results. http://en.wikipedia.org/wiki/Pi
#21 reference |
|
2. http://docs.python.org/library/decimal.html#recipes