According to these answers there is not difference between pow(a,b)
and a**b
. However, math.pow(a,b)
returns a float value. Now, when running the following python code something strange happens:
>>>import math
>>>math.pow(19,13)%2537
2296.0
>>>pow(19,13)%2537
2299
These statements should give the same value but don't. Any clue as to why this happens?