Add throwing exception when denominator is set to 0