"just shouldn't exist anymore"?!
But you can easily prove there is no way to prevent this problem in general, which is why all programming languages have this!
I strongly recommend reading some books on numerical analysis. The second volume of Knuth's The Art of Computer Programming has a chapter called "Arithmetic" that is still one of the best sources.