in reply to Re^2: Determining if a rational number terminates
in thread Determining if a rational number terminates
Thanks for that, I didn't even consider that it wouldn't be in lowest form.
It's really clever to take advantage of the fact that powers of five always end with five, I suppose then it's better to divide out the powers of two first than the powers of five. Tomorrow I will ++ both of these :D
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Determining if a rational number terminates
by tobyink (Canon) on Nov 29, 2012 at 20:13 UTC |