Message175424
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 |
|
Date |
User |
Action |
Args |
2012-11-12 08:25:05 | tom.pohl | set | recipients:
+ tom.pohl |
2012-11-12 08:25:05 | tom.pohl | set | messageid: <1352708705.94.0.0678979335127.issue16460@psf.upfronthosting.co.za> |
2012-11-12 08:25:05 | tom.pohl | link | issue16460 messages |
2012-11-12 08:25:05 | tom.pohl | create | |
|