Message289647
At divide a negative integer number for a positive integer number, the result is wrong. For example, in operation:
a, b, c = -7, 2, 7
d = divmod(a, b)
print a//b, a%b, c[0], c // b, c%b
The values printed are -4 1 3 1 |
|
Date |
User |
Action |
Args |
2017-03-15 07:56:40 | marcosthomazs | set | recipients:
+ marcosthomazs |
2017-03-15 07:56:40 | marcosthomazs | set | messageid: <1489564600.52.0.574999326638.issue29815@psf.upfronthosting.co.za> |
2017-03-15 07:56:40 | marcosthomazs | link | issue29815 messages |
2017-03-15 07:56:40 | marcosthomazs | create | |
|