Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Big Integers

 
Cecil Phillip
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the java.math package there a BigInteger class where you can create BigInteger objects whcih have no limit on the length of the integer value that it can hold. Does any one know how could you find the modulus of such an object when divided by another such BigInteger object
 
Junilu Lacar
Bartender
Pie
Posts: 7768
62
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the BigInteger.mod() method...
For your future reference: http://java.sun.com/j2se/1.3/docs/api/
BTW, Welcome to JavaRanch
------------------
Junilu Lacar
Sun Certified Programmer for the Java� 2 Platform
[This message has been edited by JUNILU LACAR (edited November 11, 2001).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic