Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Golf -- compute PI

by metadoktor (Hermit)
on Apr 16, 2002 at 02:53 UTC ( #159395=note: print w/replies, xml ) Need Help??


in reply to Golf -- compute PI

Hmmm....25 char pi with accuracy up to 15 digits...does this count? Just kidding. Ha ha ;)

sub pi { # 1 2 #1234567890123456789012345 print"3.14159265358979\n"; }

Actually, I think it is a little tricky to devise a Perl program that accurately calculates pi. A monk once made this post that seemed to inaccurately calculate pi.

metadoktor

"The doktor is in."

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://159395]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (9)
As of 2019-07-22 20:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If you were the first to set foot on the Moon, what would be your epigram?






    Results (21 votes). Check out past polls.

    Notices?