Capture divide-by-zero errors