This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Retro
Recipients Retro, docs@python
Date 2010-10-12.23:05:32
SpamBayes Score 0.00014069697
Marked as misclassified No
Message-id <1286924735.29.0.0342537376676.issue10078@psf.upfronthosting.co.za>
In-reply-to
Content
There's a typo in the docs. Please follow http://docs.python.org/py3k/library/string.html#format-specification-mini-language and find the below text, and fix the word 'Postive' to 'Positive', indicated between >>> and <<<:

'g'	
General format. For a given precision p >= 1, this rounds the number to p significant digits and then formats the result in either fixed-point format or in scientific notation, depending on its magnitude.

The precise rules are as follows: suppose that the result formatted with presentation type 'e' and precision p-1 would have exponent exp. Then if -4 <= exp < p, the number is formatted with presentation type 'f' and precision p-1-exp. Otherwise, the number is formatted with presentation type 'e' and precision p-1. In both cases insignificant trailing zeros are removed from the significand, and the decimal point is also removed if there are no remaining digits following it.

>>>Postive<<< and negative infinity, positive and negative zero, and nans, are formatted as inf, -inf, 0, -0 and nan respectively, regardless of the precision.

A precision of 0 is treated as equivalent to a precision of 1.
History
Date User Action Args
2010-10-12 23:05:35Retrosetrecipients: + Retro, docs@python
2010-10-12 23:05:35Retrosetmessageid: <1286924735.29.0.0342537376676.issue10078@psf.upfronthosting.co.za>
2010-10-12 23:05:33Retrolinkissue10078 messages
2010-10-12 23:05:32Retrocreate