Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: decimal to fraction

by vr (Hermit)
on Sep 12, 2017 at 12:49 UTC ( #1199196=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    >perl rat.pl 0.49420098210293
    0: 0 / 1 = 0 (-0.5)
    ...
    1: 390093397190 / 789341606587 = 0.49420098210293 (1e-025)
    13: 5447778312567 / 11023406488157 = 0.49420098210293 (-9e-028)
    9: 49420098210293 / 100000000000000 = 0.49420098210293 (0)
    
  2. or download this
       2 x: 0.49420098210293
    2993521666234 6057296069093
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1199196]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2018-07-18 03:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (383 votes). Check out past polls.

    Notices?