mathematics signal description clamped divisionbyzero inexact invalidoperation exponent adjusted to fit the allowed range division of non-infinite number by rounding error occurred invalid operation performed exponent exceeds emax after rounding also generates inexact and rounded rounding occurred may occur even if no information was lost (for example" rounded to " "exponent is less than emin prior to rounding numerical underflow result rounded to also generates inexact and subnormal overflow rounded subnormal underflow these signal names correspond to python exceptions that can be used for error checking here' an exampletryx / except decimal divisionbyzeroprint "division by zerolike exceptionsthe signals are organized into hierarchyarithmeticerror (built-in exceptiondecimalexception clamped divisionbyzero inexact overflow underflow invalidoperation rounded overflow underflow subnormal underflow the overflow and underflow signals appear more than once in the table because those signals also result in the parent signal (for examplean underflow also signals subnormalthe decimal divisionbyzero signal also derives from the built-in divisionbyzero exception in many casesarithmetic signals are silently ignored for instancea computation may produce round-off error but generate no exception in this casethe signal names can be used to check set of sticky flags that indicate computation state here' an examplectxt decimal getcontext(get current context if ctxt flags[rounded]print "result was rounded! lib fl ff