| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
2) Assert that the source operand is not special. Prevent resulting assert
failure (harmless) by initializing flags before calling mpd_qshiftr_inplace.
3) Save a couple of instructions (mpd_zerocoeff already sets digits and len).
Reorder initialization to match the order in the mpd_t struct.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
rather than raising RuntimeError (allocated space is sufficient for the
additional character).
|
|
|
|
|
| |
conversion in the Decimal constructor. Exact here refers to the
representation and not to the value (clamping does not change the value).
|
| |
|
| |
|
|
|
|
| |
the recent change of the default value for context.Emax.
|
|
|
|
|
|
| |
in libmpdec to prevent undefined behavior if an invalid context is used. This
cannot occur for the _decimal module since user input for the context is
validated.
|
|
|
|
|
|
| |
with decimal.py. The standard specifies InsufficientStorage (MallocError) as
a sub-condition of InvalidOperation. This allows a calculation to continue
with NaN results when allocation fails.
|
| |
|
| |
|
|
|
|
|
| |
inherits from TypeError. Cleanup in module initialization to make repeated
import failures robust.
|
| |
|
|
up the decimal module. Performance gains of the new C implementation are
between 12x and 80x, depending on the application.
|