You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
440 B
Python

import decimal
context = decimal.getcontext()
print('Emax =', context.Emax)
print('Emin =', context.Emin)
print('capitals =', context.capitals)
print('prec =', context.prec)
print('rounding =', context.rounding)
print('flags =')
for x, y in context.flags.items():
print(' {}: {}'.format(x, y))
print('traps =')
for x, y in context.traps.items():
print(' {}: {}'.format(x, y))