Tim Peters added the comment:

Note that the same is true in Python 2.

I don't want to document it, though.  In `math.floor(44/4.4)`, the 
subexpression `44/4.4` by itself wholly rules out that "[as if] with infinite 
precision [throughout the larger expression]" may be in play.  `44/4.4` rounds 
to 10.0 regardless of the context it appears in.

It's just a universal fact about how float arithmetic works, and no more 
surprising than that, e.g., float addition isn't always associative.  Which may 
mean "very surprising" to many brand new to float arithmetic, but it's not the 
job of the Python docs to give basic tutorials.

----------
nosy: +tim.peters

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27463>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to