Hacker News new | ask | show | jobs
by thatguyagain 2045 days ago
Nice read. Just wanted to add to your part about Floats (decimals) and how they are not unique to Ruby. A lot of developers, specially self thought developers (myself included) are not aware of this and might never discover it unless you start working with currencies or something similar. I guess academically thought developers learn this in school.

Anyway, it's an interesting topic imo :)

https://floating-point-gui.de/basic/

1 comments

In Raku[1] there is the concept of rational numbers, so

    0.1 + 0.2 == 0.3
[1] formerly known as Perl6.
There is in Ruby as well, as pointed out by the article.