Message303653
>>> '{:+.19e}'.format(0.)
'+0.0000000000000000000e+00'
>>> import decimal
>>> '{:+.19e}'.format(decimal.Decimal(0))
'+0.0000000000000000000e+19'
Note the decimal uses e+19 instead of e+00. Obviously it's still mathematically correct, but it's annoying to have anything other than e+00 for a 0 value. |
|
Date |
User |
Action |
Args |
2017-10-03 21:46:21 | Aaron.Meurer | set | recipients:
+ Aaron.Meurer |
2017-10-03 21:46:21 | Aaron.Meurer | set | messageid: <1507067181.62.0.213398074469.issue31684@psf.upfronthosting.co.za> |
2017-10-03 21:46:21 | Aaron.Meurer | link | issue31684 messages |
2017-10-03 21:46:21 | Aaron.Meurer | create | |
|