On this page
decimal.Underflow
Prev: decimal.Subnormal | Up: decimal
Rel: decimal.Clamped, decimal.Context, decimal.ConversionSyntax, decimal.Decimal
Ref: docs.python.org โ decimal.Underflow
Tags: #public #python3 #stdlib #decimal
Import
import decimal
from decimal import Underflow
Signature & Overview
decimal.Underflow(...)
decimal.Underflow class.
Methods & Attributes
Underflow.add_note(self, note, /)โ Add a note to the exceptionUnderflow.with_traceback(self, tb, /)โ Set self.traceback to tb and return self.
Usage
import decimal
assert issubclass(decimal.Underflow, decimal.DecimalException)
Gotchas
- Untrapped by default: Flagged when an inexact result underflows to a subnormal or zero.
REPL Inspect
from decimal import Underflow
help(Underflow)
Linked from
Related notes
- tuts/python3/stdlib_module/decimal/Subnormal 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
- tuts/python3/stdlib_module/decimal/DivisionImpossible shared tags: #decimal, #stdlib