We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Remainder operator in python outputs wrong answer with negative numbers. Example -latest available version 3.10.5 / os windows 10 - :
print(-24%-5) print(-24%5) print(24%-5)
The output
4 -4 1 -1
The correct output should be
4 -4 -4 4