On Oct 23, 9:24 pm, Tzury Bar Yochay <[EMAIL PROTECTED]> wrote: > > Because math.pow returns a float; 100 ** 155 won't fit in a float. > > Sure that is the reason. > May I rephrase, my question: > Why not returning another type as long as we can calculate it? > After all, math module is likely to be used on large numbers as well.
The math module is intended to replicate the functionality found in math.h in the C Standard Library; that's it, no more, no less. There are other libraries if you want more-than-float precision. -- http://mail.python.org/mailman/listinfo/python-list