basic floating point exception functionality