Closed abueide closed 1 year ago
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
BigInteger(-1) % BigInteger(17) returns -1 as a result
Expected behavior A clear and concise description of what you expected to happen. 16 should be returned as a result
Platform
Nvm, I just learned % maps to rem() which includes negative. I just need to use the mod function directly, sorry!
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
BigInteger(-1) % BigInteger(17) returns -1 as a result
Expected behavior A clear and concise description of what you expected to happen. 16 should be returned as a result
Platform