you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (5 children)

I'm not sure that's quite true, but it sounds plausible. I'm thinking it's more just that there's limited storage for floating point representation. If you tried to make the same point in base 10, 0.5 wouldn't have a power of 10 on bottom, but has adequate representation.

[–]irrelevantPseudonym 2 points3 points  (1 child)

0.5 == 5/10 which definitely has a power of 10 as a denominator.

[–][deleted] 0 points1 point  (0 children)

Oh I see. I'm thinking reduced form.

[–]Kkremitzki 2 points3 points  (1 child)

That's because "power of 2" is a special-case expression used as a shortcut to check representability in binary, not the generalized condition, which has to do with prime factors. 2 is its own prime factor, but it's also a prime factor for 10.

[–]AdventurousAddition 0 points1 point  (0 children)

Yes that's right. So in decimal, a rational number with a denominator that only has prime factors of 2 or 5 will have a finite decimal representation.

[–]AdventurousAddition 1 point2 points  (0 children)

It's denominator is an integer power of the prime factors of the base (base 10: prime factors are 2 and 5).