Skip to content

is_multiple behaviour with 0 #48

Description

@WizardOfMenlo

Currently, running BigUint::zero().is_multiple_of(&BigUint::zero()) panics, since the implementation attemps to perform a modular division

*self % *other == 0

However, 0 is indeed a multiple of 0 and as such true should be returned.
Since this is the only edge case, this can be fixed very easily, and I have opened a pull request (#47) accordingly.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions