Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion pep-0682.rst
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,10 @@ where ``z`` is allowed for floating-point presentation types (``f``, ``g``,
etc., as defined by the format specification documentation). Support for
``z`` is provided by the ``.__format__()`` method of each numeric type,
allowing the specifier to be used in f-strings, built-in ``format()``, and
``str.format()``. The %-formatting style will not support the new option.
``str.format()``.

When ``z`` is present, negative zero (whether the original value or the
result of rounding) will be normalized to positive zero.
Comment on lines -137 to +140
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additionally, I removed mention of %-formatting here-- it seems enough to mention it below in the notes.


Synopsis::

Expand Down