Perl: the Markov chain saw | |
PerlMonks |
Re: Determining if a rational number terminatesby herveus (Prior) |
on Nov 29, 2012 at 19:14 UTC ( [id://1006338]=note: print w/replies, xml ) | Need Help?? |
Howdy!
What you really mean is "does this rational number's decimal expansion have a form that ends with zeros?". 1/10 has two forms: 0.1000000000... and 0.099999999999... They are equal.
yours, Michael
In Section
Obfuscated Code
|
|