Search:

Type: Posts; User: aesguitar

Search: Search took 0.16 seconds.

  1. Re: Euclid Calculator GCD and LCM using BigInteger

    You can do it in BigInteger, you just have to tell it to do the same thing as your int method. I was wrong in my first post, a.compareTo(b) compares the wrong numbers and doesn't work because of it....
  2. Re: Euclid Calculator GCD and LCM using BigInteger

    One thing you could try is instead of when transferring to BigInteger



    while(a.compareTo(b)>0){


    Try comparing it the same way with the integer gcd method. When you say...
Results 1 to 2 of 2