Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1006455]
[1nickt]: Ya gotta love the google. If you set accept=".txt" in a form input field where type="file", Chrome will allow you to select local files with extensions like .pl, .pm, .yaml, .ini etc. Nice!

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2017-07-22 18:21 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (340 votes). Check out past polls.