Message210456
We can add a fast Decimal.as_integer_ratio() in C.
That said, why is the sum of Decimals not done in decimal arithmetic
with a very high context precision? It would be exact and with usual exponents in the range [-384, 383] it should be very fast.
>>> c.prec = 50
>>> sum([D("1e50"), D(1), D("-1e50")] * 1000)
Decimal('0E+1')
>>>
>>> c.prec = 51
>>> sum([D("1e50"), D(1), D("-1e50")] * 1000)
Decimal('1000') |
|
Date |
User |
Action |
Args |
2014-02-07 12:04:48 | skrah | set | recipients:
+ skrah, steven.daprano, oscarbenjamin, wolma |
2014-02-07 12:04:48 | skrah | set | messageid: <1391774688.74.0.496101236342.issue20499@psf.upfronthosting.co.za> |
2014-02-07 12:04:48 | skrah | link | issue20499 messages |
2014-02-07 12:04:48 | skrah | create | |
|