context(prec=nonerounding=nonetraps=noneflags=noneemin=noneemax=nonecapitals= this creates new decimal context the parameters should be specified using keyword arguments with the names shown prec is an integer that sets the number of digits of precision for arithmetic operationsrounding determines the rounding behaviorand traps is list of signals that produce python exception when certain events occur during computation (such as division by zeroflags is list of signals that indicate the initial state of the context (such as overflownormallyflags is not specified emin and emax are integers representing the minimum and maximum range for exponentsrespectively capitals is boolean flag that indicates whether to use 'eor 'efor exponents the default is (' 'normallynew context objects aren' created directly insteadthe function getcontext(or localcontext(is used to return the currently active context object that object is then modified as needed examples of this appear later in this section howeverin order to better understand those examplesit is necessary to explain these context parameters in further detail rounding behavior is determined by setting the rounding parameter to one of the following valuesconstant description round_ceiling rounds toward positive infinity for example rounds up to and - rounds up to - rounds toward zero for example rounds down to and - rounds up to - rounds toward negative infinity for example rounds down to and - rounds down to - rounds away from zero if the fractional part is greater than halfotherwiserounds toward zero for example rounds up to rounds down to - rounds up to - and - rounds down to - the same as round_half_down except that if the fractional part is exactly halfthe result is rounded down if the preceding digit is even and rounded up if the preceding digit is odd for example is rounded down to and is rounded up to the same as round_half_down except that if the fractional part is exactly halfit is rounded away from zero for example rounds up to and - rounds down to - rounds away from zero for example rounds up to and rounds down to - rounds away from zero if the last digit after toward zero would have been or otherwiserounds toward zero for example rounds to and rounds to round_down round_floor round_half_down round_half_even round_half_up round_up round_ up the traps and flags parameters of context(are lists of signals signal represents type of arithmetic exception that may occur during computation unless listed in trapssignals are ignored otherwisean exception is raised the following signals are definedf lib fl ff