Aug-16-2019, 12:41 AM
Floor division (//) in Python is almost the same as divmod builtin-function.
You can see its implementation from here.
Since
You can see its implementation from here.
Since
divmod(10, 0.1) = (99.0, 0.0999999....etc)
due to precision loss (as @ichabod801 mentioned above), you get 10//0.1=99.0
.