Message309879
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. |
|
Date |
User |
Action |
Args |
2018-01-12 23:47:33 | steven.daprano | set | recipients:
+ steven.daprano, tim.peters, mark.dickinson, Nathan.Goldbaum |
2018-01-12 23:47:33 | steven.daprano | set | messageid: <1515800853.92.0.467229070634.issue32543@psf.upfronthosting.co.za> |
2018-01-12 23:47:33 | steven.daprano | link | issue32543 messages |
2018-01-12 23:47:33 | steven.daprano | create | |
|