On Sat, Apr 17, 2021 at 4:30 PM Hans Henrik Bergan <divinity76@gmail.com>
wrote:
> just want to double check, 1.000000000000009 will then be an incompatible
> cast to int(1), right? because the 0.000000000000009 will be lost?
>
That's right. Something to keep in mind is that your example could have
just as well been 0.9999999999999999 -- which is going to be 0 when cast to
an integer, not 1. A "negligible" difference of 10^-16 in a float can
easily become a difference of 1 when interpreted as an integer.
Nikita