Skip to content

Negative zero fractions fail to convert to unsigned types #114

@jangler

Description

@jangler

TryInto::<u32>::try_into(Fraction::neg_zero()) returns an Err value. Technically I guess unsigned types can't represent a negative zero value, but since negative zeroes seem to arise from benign arithmetic this is pretty bad for the API.

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