Message358470
You've spent a lot of time demonstrating behaviour, but have not given us any reason why you think the results given are wrong.
As far as I can tell, every single example you show is correct. You have even quoted one of the relevant sections from the docs. "This is not a bug..."
You've flagged this is a documentation bug, an IDLE bug, an interpreter core bug, a library bug, etc. It isn't all of those things! I don't know what you actually want: do you want to improve the documentation? Something else?
By the way, your function "my_round" is buggy. This is wrong:
my_round(2.675, 2)
2.68
The binary float 2.675 is exactly equal to 3011782250804019/1125899906842624, or in decimal, exactly
2.67499999999999982236431605997495353221893310546875
Rounding to two decimal places is 2.67, not 2.68.
Can you explain why we shouldn't close this as Not A Bug? |
|
Date |
User |
Action |
Args |
2019-12-16 10:02:04 | steven.daprano | set | recipients:
+ steven.daprano, terry.reedy, paul.moore, ronaldoussoren, tim.golden, ned.deily, docs@python, zach.ware, koobs, steve.dower, AVicennA |
2019-12-16 10:02:03 | steven.daprano | set | messageid: <1576490523.98.0.649730765595.issue39059@roundup.psfhosted.org> |
2019-12-16 10:02:03 | steven.daprano | link | issue39059 messages |
2019-12-16 10:02:03 | steven.daprano | create | |
|