File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -574,11 +574,13 @@ The available presentation types for :class:`float` and
574
574
| ``'%' `` | Percentage. Multiplies the number by 100 and displays |
575
575
| | in fixed (``'f' ``) format, followed by a percent sign. |
576
576
+---------+----------------------------------------------------------+
577
- | None | For :class: `float ` this is the same as ``'g' ``, except |
577
+ | None | For :class: `float ` this is like the ``'g' `` type , except |
578
578
| | that when fixed-point notation is used to format the |
579
579
| | result, it always includes at least one digit past the |
580
- | | decimal point. The precision used is as large as needed |
581
- | | to represent the given value faithfully. |
580
+ | | decimal point, and switches to the scientific notation |
581
+ | | when ``exp >= p - 1 ``. When the precision is not |
582
+ | | specified, the latter will be as large as needed to |
583
+ | | represent the given value faithfully. |
582
584
| | |
583
585
| | For :class: `~decimal.Decimal `, this is the same as |
584
586
| | either ``'g' `` or ``'G' `` depending on the value of |
You can’t perform that action at this time.
0 commit comments