ArithmeticException is thrown in constructor when denominator is 0.