Created
September 30, 2009 01:17
-
-
Save adrianpike/197597 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
num = 4.0 | |
pi = 0 | |
plus = true | |
den = 1 | |
while den < 100000000 | |
if plus | |
pi = pi + num/den | |
plus = false | |
else | |
pi = pi - num/den | |
plus = true | |
end | |
den = den + 2 | |
end | |
Remoteling.store('pi',pi) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment