Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 surveying the Monastery: (8)
As of 2014-09-17 06:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (61 votes), past polls