Skip to content

Formatting for fixed-width with _two_ decimal places is resulting in _three_ #1072

@tonyelewis

Description

@tonyelewis

I expect the expression:

fmt::format( "{:.2f}", 0.01 )

…to result in "0.01"s but it's returning "0.010"s.

Thanks for all your hard work on this excellent library and on standardising it.

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