Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: Determining if a rational number terminates

by ColonelPanic (Friar)
on Nov 30, 2012 at 10:46 UTC ( #1006455=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Determining if a rational number terminates
in thread Determining if a rational number terminates

Thanks for your suggestions. Here is a yet shorter version:

use bigrat;print+(1e1000/pop()*pop)=~"/"?N:Y,$/


When's the last time you used duct tape on a duct? --Larry Wall


Comment on Re^3: Determining if a rational number terminates
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2015-07-30 21:47 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 (273 votes), past polls