On this page
decimal.Clamped
Up: decimal | Next: decimal.Context
Rel: decimal.Context, decimal.ConversionSyntax, decimal.Decimal, decimal.DecimalException
Ref: docs.python.org โ decimal.Clamped
Tags: #public #python3 #stdlib #decimal
Import
import decimal
from decimal import Clamped
Signature & Overview
decimal.Clamped(...)
decimal.Clamped class.
Methods & Attributes
Clamped.add_note(self, note, /)โ Add a note to the exceptionClamped.with_traceback(self, tb, /)โ Set self.traceback to tb and return self.
Usage
import decimal
assert issubclass(decimal.Clamped, decimal.DecimalException)
Gotchas
- Signal raised/flagged when an exponent is clamped to fit within
Emin..Emax.
REPL Inspect
from decimal import Clamped
help(Clamped)
Linked from
- tuts/python3/stdlib_module/decimal
- tuts/python3/stdlib_module/decimal/Context
- tuts/python3/stdlib_module/decimal/ConversionSyntax
- tuts/python3/stdlib_module/decimal/Decimal
- tuts/python3/stdlib_module/decimal/DecimalException
- tuts/python3/stdlib_module/decimal/DecimalTuple
- tuts/python3/stdlib_module/decimal/DivisionByZero
- tuts/python3/stdlib_module/decimal/DivisionImpossible
- tuts/python3/stdlib_module/decimal/DivisionUndefined
- tuts/python3/stdlib_module/decimal/FloatOperation
- tuts/python3/stdlib_module/decimal/getcontext
- tuts/python3/stdlib_module/decimal/IEEEContext
- tuts/python3/stdlib_module/decimal/Inexact
- tuts/python3/stdlib_module/decimal/InvalidContext
- tuts/python3/stdlib_module/decimal/InvalidOperation
- tuts/python3/stdlib_module/decimal/localcontext
- tuts/python3/stdlib_module/decimal/Overflow
- tuts/python3/stdlib_module/decimal/Rounded
- tuts/python3/stdlib_module/decimal/setcontext
- tuts/python3/stdlib_module/decimal/Subnormal
- tuts/python3/stdlib_module/decimal/Underflow
Related notes
- tuts/python3/stdlib_module/decimal/Context Linked here; links to this page; shared tags: #decimal, #stdlib
- tuts/python3/stdlib_module/decimal/ConversionSyntax Linked here; links to this page; shared tags: #decimal, #stdlib
- tuts/python3/stdlib_module/decimal/Decimal Linked here; links to this page; shared tags: #decimal, #stdlib
- tuts/python3/stdlib_module/decimal/DecimalException Linked here; links to this page; shared tags: #decimal, #stdlib
- tuts/python3/stdlib_module/decimal/DecimalTuple links to this page; shared tags: #decimal, #stdlib
- tuts/python3/stdlib_module/decimal/DivisionByZero links to this page; shared tags: #decimal, #stdlib
- tuts/python3/stdlib_module/decimal/DivisionImpossible links to this page; shared tags: #decimal, #stdlib
- tuts/python3/stdlib_module/decimal/DivisionUndefined links to this page; shared tags: #decimal, #stdlib
- tuts/python3/stdlib_module/decimal/FloatOperation links to this page; shared tags: #decimal, #stdlib
- tuts/python3/stdlib_module/decimal/getcontext links to this page; shared tags: #decimal, #stdlib