Re: pow() & modulo QUESTION

2016-04-01 Thread MRAB
On 2016-04-02 00:08, vaulhau...@gmail.com wrote: Having trouble performing the pow() function with real numbers. I want to also take a modulo value Weirdly, this works fine ; pow(2,6000,400) = 176 However, this returns an error ; pow(1.4142, 6000, 400) I have tried also the math.pow() f

pow() & modulo QUESTION

2016-04-01 Thread vaulhausen
Having trouble performing the pow() function with real numbers. I want to also take a modulo value Weirdly, this works fine ; pow(2,6000,400) = 176 However, this returns an error ; pow(1.4142, 6000, 400) I have tried also the math.pow() function but it doesnt work either. can any one