Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You get the same problem with 0.44... + 0.55... - I don't think that makes it any easier to anyone who is confused. It's more likely just that 0.33... and 0.66... are very common and simple repeating fractions that lead to this issue.


Sure, I was just pointing out that Base you use for your math does affect how common repeating digits are, based on the available factors in that base.

In Base-12 math, 1/3 = 0.4 and 2/3 = 0.8. With the tradeoff that 1/5 is 0.2947 repeating (the entire 2947 has the repeating over-bar).

Base-10 only has the two main factors 2 and 5, so repeating fractions are much more common in decimal representation, making this overall problem much more common, than compared to duodecimal/dozenal/Base-12 (or even hexadecimal/Base-16). It's interesting that this is a trade-off directly related to the base number of digits we want to express rational numbers in.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: