Skip to content

promote_type(::Fixed, ::Rational) should return Fixed #261

@ParadaCarleton

Description

@ParadaCarleton

Julia suggests using Rational numbers rather than floating-point literals, as floats are more disruptive. While good advice in general, this means code following the style guide will tend to disrupt fixed point numbers, since promote_type(::Fixed, ::Rational) currently returns Rational. I think we should flip this convention, to have fixed point numbers behave like floats in this regard.

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