Re: Storing a very large number

2013-07-17 Thread Ian Kelly
On Wed, Jul 17, 2013 at 1:21 PM, Hasit Mistry wrote: > I came across a problem that requires me to store a very large number (say >>10^100). How do I do it efficiently? Both the int and Decimal types support arbitrary precision. Floats do not. > And also, how do I select a particular number (sa

Re: Storing a very large number

2013-07-17 Thread Gary Herron
On 07/17/2013 12:21 PM, Hasit Mistry wrote: I came across a problem that requires me to store a very large number (say >10^100). How do I do it efficiently? And also, how do I select a particular number (say 209th) from that very large number? I am relatively new to Python. Thank you in advanc

Re: Storing a very large number

2013-07-17 Thread Grant Edwards
On 2013-07-17, Hasit Mistry wrote: > I came across a problem that requires me to store a very large number > (say >10^100). How do I do it efficiently? First you must define "efficient". If you want to store the least number of bytes, and all you need to do is store the number (you don't need t

Storing a very large number

2013-07-17 Thread Hasit Mistry
I came across a problem that requires me to store a very large number (say >10^100). How do I do it efficiently? And also, how do I select a particular number (say 209th) from that very large number? I am relatively new to Python. Thank you in advance. -- http://mail.python.org/mailman/listinf