In [25]: np.power(10,-100) Out[25]: 0 In [26]: math.pow(10,-100) Out[26]: 1e-100
I would expect both the commands to return 1e-100. This is not a
numpy method assumes you want integer returned since you supplied an integer.
np.power(10.0,-100)
works as you would expect.