Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement modulus (%) operator between BigInteger #717

Open
hdvanegasm opened this issue Dec 16, 2023 · 0 comments · May be fixed by #761
Open

Implement modulus (%) operator between BigInteger #717

hdvanegasm opened this issue Dec 16, 2023 · 0 comments · May be fixed by #761
Labels
D-medium Difficulty: medium T-feature Type: new features

Comments

@hdvanegasm
Copy link
Contributor

I found that the BigInteger trait is missing the modulus operation, i.e., the possibility of computing a % b at least for two positive BigIntegers. To implement this, we can refer to "The Art Of Computer Programming" by Donald Knuth, Section 4.3, Algorithm D. Such algorithm implement division with remainder, and it can be directly used to compute the modulus.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
D-medium Difficulty: medium T-feature Type: new features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants