Issue 23923: Integer operations (// or %) on negative numbers product wrong results. (original) (raw)
Issue23923
Created on 2015-04-12 21:54 by Antoon, last changed 2022-04-11 14:58 by admin. This issue is now closed.
Messages (2) | ||
---|---|---|
msg240569 - (view) | Author: Antoon Houben (Antoon) | Date: 2015-04-12 21:54 |
-17 // 3 should produce -5 but is currently producing -6 -17 % 3 should produce 2 but is currently producing 1 | ||
msg240574 - (view) | Author: Eric V. Smith (eric.smith) * ![]() |
Date: 2015-04-12 23:46 |
This is the expected behavior: https://docs.python.org/2/faq/programming.html#why-does-22-10-return-3 |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:58:15 | admin | set | github: 68111 |
2015-04-12 23:46:35 | eric.smith | set | status: open -> closednosy: + eric.smithmessages: + resolution: not a bugstage: resolved |
2015-04-12 21:54:03 | Antoon | create |