When calculating ratios and either side is zero, return zero

![selfie-0](http://i.imgur.com/FiJZd97.png)