Skip to content

math/big: Rat.SetString accepts fractions and float strings, but not hexadecimal floats #29799

@griesemer

Description

@griesemer

See https://play.golang.org/p/cAMvG8O0V5J .

This looks like a simple oversight. It appears that at least for hexadecimal floats, the change is as simple as not requesting base=10 in the implementation of Rat.String. We might also want to accept general integer values.

At the very least, this should be documented if we don't change it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions