Should be a simple fix of adding when A = 0, result = B.
Should be a simple fix of adding when A = 0, result = B.