3 ms·
> in fact, I would have gone a step further and made integer division return fractions rather than floats by default, as well This was decided against in Pytho
by duckerude 6y ago
> in fact, I would have gone a step further and made integer division return fractions rather than floats by default, as well
This was decided against in Python:
> ABC had two types of numbers at run time; exact numbers which were represented as arbitrary precision rational numbers and approximate numbers which were represented as binary floating point with extended exponent range. The rational numbers didn’t pan out in my view. (Anecdote: I tried to compute my taxes once using ABC. The program, which seemed fairly straightforward, was taking way too long to compute a few simple numbers. Upon investigation it turned out that it was doing arithmetic on numers with thousands of digits of precision, which were to be rounded to guilders and cents for printing.)
https://python-history.blogspot.com/2009/02/early-language-design-and-development.html https://python-history.blogspot.com/2009/02/early-language-d...