Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Determining if a rational number terminates

by tobyink (Abbot)
on Nov 30, 2012 at 10:07 UTC ( #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
Node Status?
node history
Node Type: note [id://1006447]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2014-08-20 15:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (118 votes), past polls