Skip to content

Incorrect rational division #57

Description

@Shoeboxam

The denominator is incorrect in the rational division routines:

https://github.com/cmpute/dashu/blob/da5723435b13552bec2e95053e9beea82a8fe571/rational/src/div.rs#L100C1-L116C2

I believe it should be:

RBig(Repr {
    numerator: a / &g,
    denominator: b * (i / g),
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions