Message228318
The format documentation for the Format Specification Mini-Language for python 3.3 (perhaps newer and older as well) at: https://docs.python.org/3.3/library/string.html
States for type '' (for floating point numbers):
Similar to 'g', except with at least one digit past the decimal point and a default precision of 12. This is intended to match str(), except you can add the other format modifiers.
This appears not to be true, the following code example, run in Python 3.3.2:
>>> '{}'.format(3.14159265358979323846264338327950288419)
'3.141592653589793'
As it can be seen form the output the default precision appears to be 15. |
|
Date |
User |
Action |
Args |
2014-10-03 09:31:18 | Barium | set | recipients:
+ Barium, docs@python |
2014-10-03 09:31:18 | Barium | set | messageid: <1412328678.8.0.959126948842.issue22546@psf.upfronthosting.co.za> |
2014-10-03 09:31:18 | Barium | link | issue22546 messages |
2014-10-03 09:31:18 | Barium | create | |
|