PyDocs

Nav

Numeric and Mathematical Modules

Context.clear_flags

decimal

method of Context
  • Context.clear_flags()
Reset all flags to False.
1 Example
>>> setcontext(ExtendedContext)
>>> getcontext().clear_flags()
>>> Decimal(355) / Decimal(113)
Decimal('3.14159292')
>>> getcontext()
Context(prec=9, rounding=ROUND_HALF_EVEN, Emin=-999999, Emax=999999,
        capitals=1, clamp=0, flags=[Inexact, Rounded], traps=[])
from the Python docs
See Also
No see-alsos for decimal/Context.clear_flags
0 Notes
No notes for Context.clear_flags