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
In reply to Re^3: Determining if a rational number terminates
by blackle
in thread Determining if a rational number terminates
by blackle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |