Skip to content

easier interop with floats  #85

@benmkw

Description

@benmkw

Can TryFrom be implemented as well as FromPrimitive? This would make it easier to make conversions using .try_nto().

I would further propose to allow performing arithmetic between rationals and floats although this would mean that From would make more sense than TryFrom and errors would panic instead of returning an error.

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