Skip to content

Instantly share code, notes, and snippets.

@adrianpike
Created September 30, 2009 01:17
Show Gist options
  • Save adrianpike/197597 to your computer and use it in GitHub Desktop.
Save adrianpike/197597 to your computer and use it in GitHub Desktop.
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