Frac Calc 2

because num & denom have not been set, you are getting a divide by zero error.