> But my point was that it's not related to weak typing as the parent seems to suggest.
And you're completely right there. Any language using floating-point numbers will have the same issue regardless of its typing discipline e.g. Rust: https://is.gd/4BNoWa