Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c6ad576

Browse files
committed
Issue #22546: update doc for mini-language float None presentation type.
1 parent 1c262a6 commit c6ad576

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

Doc/library/string.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -478,10 +478,12 @@ The available presentation types for floating point and decimal values are:
478478
| ``'%'`` | Percentage. Multiplies the number by 100 and displays |
479479
| | in fixed (``'f'``) format, followed by a percent sign. |
480480
+---------+----------------------------------------------------------+
481-
| None | Similar to ``'g'``, except with at least one digit past |
482-
| | the decimal point and a default precision of 12. This is |
483-
| | intended to match :func:`str`, except you can add the |
484-
| | other format modifiers. |
481+
| None | Similar to ``'g'``, except that fixed-point notation, |
482+
| | when used, has at least one digit past the decimal point.|
483+
| | The default precision is as high as needed to represent |
484+
| | the particular value. The overall effect is to match the |
485+
| | output of :func:`str` as altered by the other format |
486+
| | modifiers. |
485487
+---------+----------------------------------------------------------+
486488

487489

0 commit comments

Comments
 (0)