> What's the whole reason behind distinguishing between integers and float/doubles? Because historically CPUs worked efficiently natively on integers, and everything else was software. (Modern CPUs also work efficiently natively on floats, but with different representation and operations.) Note that not all languages (even o n your list) have the problem you describe though; plenty of automatic coercion with numeric…
Re: Why do programming languages suck at math?
#11I just did a quick test on my comp with python 2.7.13, perl 5.24, perl 6, ruby 2.3.3 and php 7 and they all worked.