User:Odel: Difference between revisions
No edit summary |
Esemplectic (talk | contribs) (An answer) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
Im a high-schooler in Oregon, got an xo throught G1G1 and have been Hacking / Modding ( what ever you want to call it ) sence i got it. So far I have contributed: |
|||
Im a random person,and creepy... |
|||
You can use the 'Decimal' module in Python for higher |
|||
-A pippy demo that computed pi |
|||
precision in your calculation of Pi. |
|||
http://wiki.laptop.org/go/Pippy#compute_pi.21 |
|||
-Muthu |
|||
===An answer=== |
|||
Someone contributed the following to the pippy talk page, |
|||
(http://wiki.laptop.org/go/Talk:Pippy) |
|||
I copied it over in case you haven't seen it. [[User:Esemplectic|Esemplectic]] 15:33, 1 July 2008 (UTC) |
|||
== Re: Compute Pi == |
|||
Travis Hall wrote the pi computation demo |
|||
http://wiki.laptop.org/go/User:Odel |
|||
There he asked how to increase the precision available to his code. Python has two relevant numeric types, integers and floating-point values. The former numeric type is of infinite precision, whereas the floating-point is an IEEE "double" of 64 bits. Accumulate your result as an integer and infer the decimal position by some other means. |
Latest revision as of 15:33, 1 July 2008
Im a high-schooler in Oregon, got an xo throught G1G1 and have been Hacking / Modding ( what ever you want to call it ) sence i got it. So far I have contributed:
-A pippy demo that computed pi http://wiki.laptop.org/go/Pippy#compute_pi.21
An answer
Someone contributed the following to the pippy talk page, (http://wiki.laptop.org/go/Talk:Pippy) I copied it over in case you haven't seen it. Esemplectic 15:33, 1 July 2008 (UTC)
Re: Compute Pi
Travis Hall wrote the pi computation demo http://wiki.laptop.org/go/User:Odel
There he asked how to increase the precision available to his code. Python has two relevant numeric types, integers and floating-point values. The former numeric type is of infinite precision, whereas the floating-point is an IEEE "double" of 64 bits. Accumulate your result as an integer and infer the decimal position by some other means.