Skip to content

Difference in hexadecimal floating-point (a) format between fmt and std isn't documented #4657

@statementreply

Description

@statementreply

https://godbolt.org/z/TaK4s5YTM

When formatting floating-point numbers to hexadecimal (a) format, fmt includes the 0x prefix (similar to printf %a), but std doesn't (specified in terms of to_chars). Perhaps std should be fixed.

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