Returns result of dividing value1 and value2. If value2 is zero, then result is zeroResult (third argument).