On this page
decimal.Subnormal
Prev: decimal.setcontext | Up: decimal | Next: decimal.Underflow
Rel: decimal.Clamped, decimal.Context, decimal.ConversionSyntax, decimal.Decimal
Ref: docs.python.org โ decimal.Subnormal
Tags: #public #python3 #stdlib #decimal
Import
import decimal
from decimal import Subnormal
Signature & Overview
decimal.Subnormal(...)
decimal.Subnormal class.
Methods & Attributes
Subnormal.add_note(self, note, /)โ Add a note to the exceptionSubnormal.with_traceback(self, tb, /)โ Set self.traceback to tb and return self.
Usage
import decimal
assert issubclass(decimal.Subnormal, decimal.DecimalException)
Gotchas
- Flagged when a result's adjusted exponent falls below
ctx.Emin.
REPL Inspect
from decimal import Subnormal
help(Subnormal)
Linked from
Related notes
- tuts/python3/stdlib_module/decimal/setcontext Linked here; links to this page; shared tags: #decimal, #stdlib
- tuts/python3/stdlib_module/decimal/Underflow Linked here; links to this page; shared tags: #decimal, #stdlib
- tuts/python3/stdlib_module/decimal/Clamped Linked here; shared tags: #decimal, #stdlib
- tuts/python3/stdlib_module/decimal/Context Linked here; shared tags: #decimal, #stdlib
- tuts/python3/stdlib_module/decimal/ConversionSyntax Linked here; shared tags: #decimal, #stdlib
- tuts/python3/stdlib_module/decimal/Decimal Linked here; shared tags: #decimal, #stdlib
- tuts/python3/stdlib_module/decimal links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/decimal/DecimalException shared tags: #decimal, #stdlib
- tuts/python3/stdlib_module/decimal/DecimalTuple shared tags: #decimal, #stdlib
- tuts/python3/stdlib_module/decimal/DivisionByZero shared tags: #decimal, #stdlib