[Tutor] how to handle very large numbers

Surya K suryak at live.com
Mon Jan 23 03:08:52 CET 2012


Well, 
I have been doing a puzzle where I have to deal with number 10^18. A variable can store that value but can't do operations.Ex: If I use range() on it, it shows overflow error.
So, How do I handle this. I have to use range() for that number.. in this instance.
Also mention how to handle in other cases too (A small tutorial/ book would be appreciated )

Thanks 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120123/a353cf24/attachment.html>


More information about the Tutor mailing list