when Iam performing modular division on negative numbers,I found that it is not same as in case of positive numbers
I've tried
>>> -123%10
7
>>> 123%10
3
I expected that the output of -123%10 to be 3,but the actual output is 7
when Iam performing modular division on negative numbers,I found that it is not same as in case of positive numbers
I've tried
>>> -123%10
7
>>> 123%10
3
I expected that the output of -123%10 to be 3,but the actual output is 7