Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Help Java B Java Biginteger

Related Tutorials


 
 

Share on Google+Share on Google+

Java Biginteger

Advertisement
When working with arithmetic operations using int or long

Java Biginteger

     

When working with arithmetic operations using int or long, if the value becomes larger than 64 bits which is the size of a long then java takes only the low order 32 (64 for longs) bits ignoring the rest. Just have an attention, here java doesn't generate any error but produce the result which is not correct. BigInteger in "java.math" package is made to store large results. It provides a number of methods for doing arithmetic with them.

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: June 10, 2009

Related Tutorials

Discuss: Java Biginteger  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0
DMCA.com