News for hackers. Stuff that matters.
Re:0.30000000000000004 by Someone on Sunday April 02, 2017 @03:56PM (#14018716)
If you can write n=p/q with p and q relatively prime using d digits after the decimal point in base 10, 10^d times n is an integer. We also have

  10^d*n = 10^d*p/q
so 10^d*p must be divisible by q. Since p and q are relatively prime, 10^d must be divible by q. That's only possible if all prime factors of q are 2 or 5.

There are no comments on this comment yet.