Ad
  • Custom User Avatar

    I don’t think we need to judge to divide by 0. When an incorrect parameter is entered, an error message should be displayed, prompting the inputter that the parameter is incorrect. Otherwise, people who use the function will think that 0 is also a valid divisor. Unless the requirements clearly indicate the need for compatibility with a divisor of 0. :)