Skip to content

US227 20.20.02.2 [format.string.std] p5 Add "z" format modifier to avoid sign for zero-display numbers P1496 #224

@wg21bot

Description

@wg21bot

We believe that the lack of a way to suppress the negative sign on numbers which are rounded up to zero by the specified precision is a defect which will affect most users of format string.

Proposed change:
Add: “'z' Indicates that a sign should not be used for negative numbers that display as zero (after rounding to the formatting precision).” To table 59. The details of the change will be proposed in P1496R1 in the pre-Belfast mailing. A “D” version of this paper was discussed in Kona this year. cplusplus/papers#605

Metadata

Metadata

Assignees

No one assigned

    Labels

    LEWGLibrary Evolution

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions