erikwiffin / 0.30000000000000004

Floating Point Math Examples

Home Page:https://0.30000000000000004.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use of the word `decimals` is confusing

j-h-a opened this issue · comments

Use of the word decimals is confusing. For example:

In binary, 1 / 2, 1 / 4, 1 / 8 would all be expressed cleanly as decimals, while 1 / 5 or 1 / 10 would be repeating decimals

Here the first-use as decimals is correct, meaning when converted to decimal and written out, but the second-use is confusing; I think it means "digits after the binary-point". I don't think "decimals" is a good word to mean "digits after the binary-point".

I don't have a better word, just found it confusing. Please let me know if I got it all wrong. Awesome explanation though - love it :)

I think it's confusing too but according to wikipedia https://en.wikipedia.org/wiki/Repeating_decimal it's actually called repeating decimal so idk

I filed a pull request about this a while back, but it didn't get any traction: #233. Maybe you or someone else could use that as a starting point for suggesting a change.