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 tom.pohl
Recipients tom.pohl
Date 2012-11-12.08:25:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1352708705.94.0.0678979335127.issue16460@psf.upfronthosting.co.za>
In-reply-to
Content
According to the documentation of the floor division (http://docs.python.org/2/reference/expressions.html#binary-arithmetic-operations), x//y should be equal to math.floor(x/y).

However, the result of 1//0.1 is 9.0 (tested on 2.6, 2.7, 3.2).

It might be related to the internal representation of floating-point numbers, but for this example I would expect it to come up with the correct values.

Cheers,
Tom
History
Date User Action Args
2012-11-12 08:25:05tom.pohlsetrecipients: + tom.pohl
2012-11-12 08:25:05tom.pohlsetmessageid: <1352708705.94.0.0678979335127.issue16460@psf.upfronthosting.co.za>
2012-11-12 08:25:05tom.pohllinkissue16460 messages
2012-11-12 08:25:05tom.pohlcreate