Nom de la classe | Description |
Context | The context affects almost all operations and controls rounding, [extrait de Context.__doc__] |
Decimal | Construct a new Decimal object. 'value' can be an integer, string, tuple, [extrait de Decimal.__doc__] |
DecimalTuple | DecimalTuple(sign, digits, exponent) [extrait de DecimalTuple.__doc__] |
Nom de la classe d'exception | Description |
Clamped | |
ConversionSyntax | |
DecimalException | |
DivisionByZero | |
DivisionImpossible | |
DivisionUndefined | |
FloatOperation | |
Inexact | |
InvalidContext | |
InvalidOperation | |
Overflow | |
Rounded | |
Subnormal | |
Underflow |
Signature de la fonction | Description |
getcontext() | Get the current default context. [extrait de getcontext.__doc__] |
localcontext(ctx=None, **kwargs) | Return a context manager that will set the default context to a copy of ctx [extrait de localcontext.__doc__] |
setcontext(context) | Set a new default context. [extrait de setcontext.__doc__] |
Nom de la variable globale | Valeur |
BasicContext | Context(prec=9, rounding=ROUND_HALF_UP, Emin=-999999, Emax=999999, capitals=1, clamp=0, flags=[], traps=[Clamped, InvalidOperation, DivisionByZero, Overflow, Underflow]) |
DefaultContext | Context(prec=28, rounding=ROUND_HALF_EVEN, Emin=-999999, Emax=999999, capitals=1, clamp=0, flags=[], traps=[InvalidOperation, DivisionByZero, Overflow]) |
ExtendedContext | Context(prec=9, rounding=ROUND_HALF_EVEN, Emin=-999999, Emax=999999, capitals=1, clamp=0, flags=[], traps=[]) |
HAVE_CONTEXTVAR | True |
HAVE_THREADS | True |
MAX_EMAX | 999999999999999999 |
MAX_PREC | 999999999999999999 |
MIN_EMIN | -999999999999999999 |
MIN_ETINY | -1999999999999999997 |
ROUND_05UP | ROUND_05UP |
ROUND_CEILING | ROUND_CEILING |
ROUND_DOWN | ROUND_DOWN |
ROUND_FLOOR | ROUND_FLOOR |
ROUND_HALF_DOWN | ROUND_HALF_DOWN |
ROUND_HALF_EVEN | ROUND_HALF_EVEN |
ROUND_HALF_UP | ROUND_HALF_UP |
ROUND_UP | ROUND_UP |
Améliorations / Corrections
Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.
Emplacement :
Description des améliorations :