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 eric.smith
Recipients davidchambers, eric.smith
Date 2020-05-26.15:12:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
FWIW, which is probably not much with ".g" formatting, this is how Decimal behaves:

>>> from decimal import Decimal as D
>>> format(D(1504), '.3g')
>>> format(D(1505), '.3g')
>>> format(D(1506), '.3g')
>>> format(D(1504.0), '.3g')
>>> format(D(1505.0), '.3g')
>>> format(D(1506.0), '.3g')
>>> format(D("1504.0"), '.3g')
>>> format(D("1505.0"), '.3g')
>>> format(D("1506.0"), '.3g')
Date User Action Args
2020-05-26 15:12:32eric.smithsetrecipients: + eric.smith, davidchambers
2020-05-26 15:12:32eric.smithsetmessageid: <>
2020-05-26 15:12:32eric.smithlinkissue40780 messages
2020-05-26 15:12:32eric.smithcreate