Results 1 to 6 of 6
Like Tree1Likes
  • 1 Post By JosAH

Thread: How BigInteger handels large number?

  1. #1
    ravi.joshi53 is offline Member
    Join Date
    Oct 2011
    Posts
    24
    Rep Power
    0

    Default How BigInteger handels large number?

    Recently I used BigInteger. I was surprised by the magic does by BigInteger. It can calculates all general function for large numbers. Can anyone tell how this magic is done? how the larger numbers are stored in memory? how much bits are used in such case? Thank you.

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    7

    Default Re: How BigInteger handels large number?

    Recommend starting at the source: java.math: BigInteger.java

  3. #3
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,349
    Blog Entries
    7
    Rep Power
    20

    Default Re: How BigInteger handels large number?

    Quote Originally Posted by ravi.joshi53 View Post
    Can anyone tell how this magic is done?
    No, it's a secret because it's magic; reading the source code will turn you into a newt seven times seventyseven times (this makes fivehundred thirtynine times which is too large to fit in a byte, so it's real magic).

    kindest regards,

    Jos ;-)
    cenosillicaphobia: the fear for an empty beer glass

  4. #4
    ravi.joshi53 is offline Member
    Join Date
    Oct 2011
    Posts
    24
    Rep Power
    0

    Default Re: How BigInteger handels large number?

    :) Ok.... Thank you.

  5. #5
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: How BigInteger handels large number?

    Quote Originally Posted by JosAH View Post
    No, it's a secret because it's magic; reading the source code will turn you into a newt seven times seventyseven times (this makes fivehundred thirtynine times which is too large to fit in a byte, so it's real magic).
    And please for the love of all things holy, don't let this happen! We already have one Newt too many around here!

    How BigInteger handels large number?-newt-gingrich-family-values.jpg

  6. #6
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,349
    Blog Entries
    7
    Rep Power
    20

    Default Re: How BigInteger handels large number?

    Oh my goodness! See that poor man's diabolical smile on his heavily deformed face! He is doomed eleven times fourtynine times (that also makes fivehundred thirtynine times, so it must be Beelzebub himself, I'm telling you! He must've read the secret source code from the entire SE set of classes! He's the mother of all newts!

    kindest regards,

    Jos (runs ---------------------------------------------------------------------------------------> that a'way)
    Fubarable likes this.
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. Get first 40 digits of a BigInteger
    By sgtlaugh in forum New To Java
    Replies: 19
    Last Post: 12-13-2011, 10:10 PM
  2. BigInteger
    By 7cardcha in forum New To Java
    Replies: 9
    Last Post: 10-25-2011, 06:06 AM
  3. BigInteger value of
    By ccie007 in forum New To Java
    Replies: 2
    Last Post: 09-26-2010, 03:46 PM
  4. BigInteger
    By windows.login in forum New To Java
    Replies: 8
    Last Post: 07-13-2010, 01:10 PM
  5. Replies: 0
    Last Post: 06-28-2010, 12:30 PM

Tags for this Thread

Posting Permissions

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