This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steven.daprano
Recipients Nathan.Goldbaum, mark.dickinson, steven.daprano, tim.peters
Date 2018-01-12.23:47:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1515800853.92.0.467229070634.issue32543@psf.upfronthosting.co.za>
In-reply-to
Content
That does look at first glance like a bug in // to me. 0.9/0.1 is correctly rounded to 9.0 exactly, so flooring it should return 9 (as it does):

# Python 3.5 on Linux
py> 0.9/0.1 == 9
True
py> math.floor(0.9/0.1)
9

So I too would expect that 0.9//0.1 should evaluate as 9, not 8.
History
Date User Action Args
2018-01-12 23:47:33steven.dapranosetrecipients: + steven.daprano, tim.peters, mark.dickinson, Nathan.Goldbaum
2018-01-12 23:47:33steven.dapranosetmessageid: <1515800853.92.0.467229070634.issue32543@psf.upfronthosting.co.za>
2018-01-12 23:47:33steven.dapranolinkissue32543 messages
2018-01-12 23:47:33steven.dapranocreate