POW for negative numbers

pow(a, -b) = 1/ pow(a,b) - make sure precision is not lost due to int
operations - change that to double