Message358667
The description of the "Format Specification Mini-Language" states for float and Decimal regarding presentation type 'f':
"The default precision is 6."
Regarding presentation type None it reads:
"Similar to 'g', except that fixed-point notation, when used, has at least one digit past the decimal point."
While both statements are accurate for float, they don't hold for Decimal.
In order to preserve the information about the decimal exponent, in both cases Decimal formatting displays as many fractional digits as dictated by it's exponent. |
|
Date |
User |
Action |
Args |
2019-12-19 10:11:20 | mamrhein | set | recipients:
+ mamrhein, docs@python |
2019-12-19 10:11:20 | mamrhein | set | messageid: <1576750280.17.0.548410545235.issue39096@roundup.psfhosted.org> |
2019-12-19 10:11:20 | mamrhein | link | issue39096 messages |
2019-12-19 10:11:19 | mamrhein | create | |
|