Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from decimal import *
- ctx = getcontext()
- ctx.traps[Clamped] = 1
- ctx.traps[Inexact] = 1
- ctx.traps[Subnormal] = 1
- ctx.prec = 8
- ctx.Emin = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement