mirror of https://github.com/python/cpython
Issue #22546: update doc for mini-language float None presentation type.
This commit is contained in:
parent
1c262a6c75
commit
c6ad57608b
|
@ -478,10 +478,12 @@ The available presentation types for floating point and decimal values are:
|
|||
| ``'%'`` | Percentage. Multiplies the number by 100 and displays |
|
||||
| | in fixed (``'f'``) format, followed by a percent sign. |
|
||||
+---------+----------------------------------------------------------+
|
||||
| None | Similar to ``'g'``, except with at least one digit past |
|
||||
| | the decimal point and a default precision of 12. This is |
|
||||
| | intended to match :func:`str`, except you can add the |
|
||||
| | other format modifiers. |
|
||||
| None | Similar to ``'g'``, except that fixed-point notation, |
|
||||
| | when used, has at least one digit past the decimal point.|
|
||||
| | The default precision is as high as needed to represent |
|
||||
| | the particular value. The overall effect is to match the |
|
||||
| | output of :func:`str` as altered by the other format |
|
||||
| | modifiers. |
|
||||
+---------+----------------------------------------------------------+
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue