This sounds silly but I dont know how to get rid of this error

I have to calculate the growth percentage

Growth % = (B/A)-1

A B Growth Percentage
2 5 = 150%
0 0 = #DIV/0!
0 3 = #DIV/0!
3 0 = -100%

In example 2, the return value should be 0%
and in example 3, the return value should be 100%

Hope someone could help me. Appreciate it big time!
Thanks,
Rhea