Results 1 to 2 of 2

Thread: Big integer

  1. #1
    penguinSlack is offline Member
    Join Date
    Mar 2011
    Posts
    1
    Rep Power
    0

    Default BigDecimal

    Hello everyone ,

    I need to write a gcd function for one of my classes , I know there are a lot of gcd function samples out there but I am working with BigDecimal data type and I dont know how to write the gcd function .

    If anyone could point me to a sample or give me one that would be awesome.
    Thank you in advance .
    Last edited by penguinSlack; 03-14-2011 at 03:16 AM.

  2. #2
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default

    How would you do this with ints? Do it that way and you are pretty much there. BigInteger has a method for each operation.

Similar Threads

  1. How to replace and integer with another
    By franzwarning in forum New To Java
    Replies: 7
    Last Post: 11-26-2010, 10:21 PM
  2. convert unsigned integer to signed integer in java?
    By diskhub in forum New To Java
    Replies: 6
    Last Post: 05-17-2010, 12:50 AM
  3. Comparsion between Integer and Int
    By crosswind in forum CLDC and MIDP
    Replies: 3
    Last Post: 04-15-2010, 10:15 PM
  4. Integer to String
    By zervine in forum Forum Lobby
    Replies: 3
    Last Post: 09-12-2008, 12:07 PM
  5. Integer vs int
    By bugger in forum New To Java
    Replies: 1
    Last Post: 11-14-2007, 09:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •