Java Biginteger

When working with arithmetic operations using int or long

Ads

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.

Advertisements

Share on Google+Share on Google+

Java Biginteger

Posted on: June 10, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Advertisements

 

Discuss: Java Biginteger  

Post your Comment


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

Ads

 

Ads