[ * for in [decimal(" ")decimal(" ")decimal(" ")float( str( ' here' an example of changing parameters in the contextgetcontext(prec decimal(" " decimal(" " decimal(" "getcontext(flags[rounded getcontext(flags[rounded decimal(" "traceback (most recent call last)file ""line in decimal divisionbyzerox getcontext(traps[divisionbyzerofalse decimal(" "decimal("infinity"notes the decimal and context objects have large number of methods related to low-level details concerning the representation and behavior of decimal operations these have not been documented here because they are not essential for the basic use of this module howeveryou should consult the online documentation at the decimal context is unique to each thread changes to the context only affect that thread and not others special numberdecimal("snan")may be used as signaled-nan this number is never generated by any of the built-in functions howeverif it appears in computationan error is always signaled you can use this to indicate invalid computations that must result in an error and must not be silently ignored for examplea function could return snan as result the value of may be positive or negative (that isdecimal( and decimal ("- ")the distinct zeros still compare as equals this module is probably unsuitable for high-performance scientific computing due to the significant amount of overhead involved in calculations alsothere is often little practical benefit in using decimal floating point over binary floating point in such applications full mathematical discussion of floating-point representation and error analysis is beyond the scope of this book readers should consult book on numerical analysis for further details the article "what every computer scientist should lib fl ff