Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: porting C code to Perl -- solved

by marioroy (Prior)
on Oct 24, 2017 at 04:30 UTC ( [id://1201942]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $pi .= $predigit;    # <-- missing line
    
    print $pi =~ s/^03/3./r;
    
  2. or download this
    # The spigot algorithm for calculating the digits of Pi.
    # http://www.cut-the-knot.org/Curriculum/Algorithms/SpigotForPi.shtml
    ...
    
    print $pi, "\n";
    
  3. or download this
    2a3
    > use integer;
    ...
    ---
    >     $q    = $q / 10;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-03-29 12:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found