Handling integer greater than 2^32 bits
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   shumei_li
Posted On:   Monday, September 6, 2004 12:35 AM


I have to add two integers, and the sum will be greater than 32 bits. How can I handle the case without using the class BigInteger.



Thank you!

Re: Handling integer greater than 2^32 bits

Posted By:   Pavan_Gattu  
Posted On:   Monday, September 6, 2004 02:17 AM

I think your question is very abstract. What do you want the program to do. Still hold the right value (more than 32 bits) in int field?



Is there any issue in using long field?
About | Sitemap | Contact