Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Determining if a rational number terminates

by tobyink (Canon)
on Nov 30, 2012 at 10:07 UTC ( [id://1006447]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use bigrat;print((shift()*10**1000/shift)=~"/"?N:Y,$/)
    
  2. or download this
    use bigrat;print[Y,N]->[(shift()*10**1000/shift)=~"/"],$/
    
  3. or download this
    use bigrat;$_=shift()*10**1000/shift;print[Y,N]->[m"/"],$/
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2025-03-25 02:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When you first encountered Perl, which feature amazed you the most?










    Results (65 votes). Check out past polls.

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.