in reply to Determining if a rational number terminates
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
Michael
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Determining if a rational number terminates
by tobyink (Canon) on Nov 29, 2012 at 20:14 UTC |
In Section
Obfuscated Code