Message196559
BTW, in _decimal the feature can already be enabled with:
./configure CFLAGS=-DEXTRA_FUNCTIONALITY
>>> IEEEContext(DECIMAL128)
Context(prec=34, rounding=ROUND_HALF_EVEN, Emin=-6143, Emax=6144, capitals=1, clamp=1, flags=[], traps=[])
>>> IEEEContext(DECIMAL64)
Context(prec=16, rounding=ROUND_HALF_EVEN, Emin=-383, Emax=384, capitals=1, clamp=1, flags=[], traps=[])
>>> IEEEContext(DECIMAL32)
Context(prec=7, rounding=ROUND_HALF_EVEN, Emin=-95, Emax=96, capitals=1, clamp=1, flags=[], traps=[])
>>>
>>> IEEEContext(512)
Context(prec=142, rounding=ROUND_HALF_EVEN, Emin=-103079215103, Emax=103079215104, capitals=1, clamp=1, flags=[], traps=[])
>>> IEEEContext(1024)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: argument must be a multiple of 32, with a maximum of 512
>>>
Of course this isn't the official API yet, but I think it's
reasonable. |
|
Date |
User |
Action |
Args |
2013-08-30 16:08:54 | skrah | set | recipients:
+ skrah, rhettinger, terry.reedy, facundobatista, mark.dickinson, christian.heimes, ezio.melotti, maker |
2013-08-30 16:08:54 | skrah | set | messageid: <1377878934.78.0.919167153593.issue8786@psf.upfronthosting.co.za> |
2013-08-30 16:08:54 | skrah | link | issue8786 messages |
2013-08-30 16:08:54 | skrah | create | |
|