This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton 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
Posts: 7466
50
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