How to catch FloatingPointError Exception in Python?
When the code given below is run, I get an error.
import sys
import math
import fpectl
print 'Control off:', math.exp(700)
fpectl.turnon_sigfpe()
print 'Control on:', math.exp(1000)
How do I catch this error and know its type?