Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Recurring Cycle of Fractions (tiny)

by tye (Cardinal)
on Sep 09, 2007 at 07:43 UTC ( #637891=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    }
    substr( $rep, 0, $seen{$rem} )= '';
    print "$num / $den = ...$rep\n";
    
  2. or download this
     $ perl repDig.pl 97
    1 / 97 = ...010309278350515463917525773195876288659793
    ...
     $ perl repDig.pl 2 97
    2 / 97 = ...020618556701030927835051546391752577319587
    628865979381443298969072164948453608247422680412371134
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2015-07-06 22:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (84 votes), past polls