Skip to content

Correct Modulus#8

Open
ZachT112 wants to merge 1 commit into
empyreuma:masterfrom
ZachT112:master
Open

Correct Modulus#8
ZachT112 wants to merge 1 commit into
empyreuma:masterfrom
ZachT112:master

Conversation

@ZachT112

Copy link
Copy Markdown

When using bigint for modulus of something such as 2 % 13, the library returns 0 instead of 2. Corrected by changing the divide raw function to return 2 as the remainder instead of 0 when the dividend is less than the divisor.

When using bigint for modulus of something such as 2 % 13, the library returns 0 instead of 2. Corrected by changing the divide raw function to return 2 as the remainder instead of 0 when the dividend is less than the divisor.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant