On Tue, Mar 8, 2011 at 6:38 PM, Vickram <vick1975 at intnet.mu> wrote: > The python result is wrong because I may have misread the C++ code Well, really, I suggest you read a tutorial on Python - you don't seem to be getting a hang on the basics, for example, there's no need for to use the float() function.