Unexpected behaviour of math.floor, round and int functions (rounding)
Greg Ewing
greg.ewing at canterbury.ac.nz
Sun Nov 21 00:39:19 EST 2021
On 21/11/21 2:18 pm, Grant Edwards wrote:
> My recollection is that it was quite common back in the days before FP
> hardware was "a thing" on small computers. CPM and DOS compilers for
> various languages often gave the user a choice between binary FP and
> decimal (BCD) FP.
It's also very common for handheld calculators to work in decimal.
Most of HP's classic calculators used a CPU that was specifically
designed for doing BCD arithmetic, and many versions of it didn't
even have a way of doing arithmetic in binary!
--
Greg
More information about the Python-list
mailing list