The following example demonstrates how to start up and test operation ofthefpectl module.
>>> import fpectl>>> import fpetest>>> fpectl.turnon_sigfpe()>>> fpetest.test()overflow PASSFloatingPointError: Overflowdiv by 0 PASSFloatingPointError: Division by zero [ more output from test elided ]>>> import math>>> math.exp(1000)Traceback (most recent call last): File "<stdin>", line 1, in ?FloatingPointError: in math_1
| Python Library Reference |