Document floating-point n specifier (#1291)

This commit is contained in:
Victor Zverovich 2019-08-31 07:28:15 -07:00
parent 9a56a608ee
commit d1dd9d5327

View File

@ -264,6 +264,10 @@ The available presentation types for floating-point values are:
| | ``'E'`` if the number gets too large. The | | | ``'E'`` if the number gets too large. The |
| | representations of infinity and NaN are uppercased, too. | | | representations of infinity and NaN are uppercased, too. |
+---------+----------------------------------------------------------+ +---------+----------------------------------------------------------+
| ``'n'`` | Number. This is the same as ``'g'``, except that it uses |
| | the current locale setting to insert the appropriate |
| | number separator characters. |
+---------+----------------------------------------------------------+
| ``'%'`` | Fixed point as a percentage. This is similar to ``'f'``, | | ``'%'`` | Fixed point as a percentage. This is similar to ``'f'``, |
| | but the argument is multiplied by 100 and a percent sign | | | but the argument is multiplied by 100 and a percent sign |
| | ``%`` is appended. | | | ``%`` is appended. |