Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1030171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T12:39:27+00:00 2026-05-16T12:39:27+00:00

I wanted to know how the BigInt and other such stuff are implemented. I

  • 0

I wanted to know how the BigInt and other such stuff are implemented. I tried to check out JAVA source code, but it was all Greek and Latin to me.
Can you please explain me the algo in words – no code, so that i understand what i am actually using when i use something from the JAVA API.
regards

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T12:39:28+00:00Added an answer on May 16, 2026 at 12:39 pm

    Conceptually, the same way you do arbitrary size arithmentic by hand. You have something like an array of values, and algorithms for the various operations that work on the array.

    Say you want to add 100 to 901. You start with the two numbers as arrays:

     [0, 1, 0, 0]
     [0, 9, 0, 1]
    

    When you add, your addition algorithm starts from the right, takes 0+1, giving 1, 0+0, giving 0, and — now the tricky part — 9+1 gives 10, but now we need to carry, so we add 1 to the next column over, and put (9+1)%10 into the third column.

    When your numbers grow big enough — greater than 9999 in this example — then you have to allocate more space somehow.

    This is, of course, somewhat simplified if you store the numbers in reverse order.

    Real implementations use full words, so the modulus is really some large power of two, but the concept is the same.

    There’s a very good section on this in Knuth.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Wanted to know if someone had a suggestion on code or maybe there's a
I wanted to know if there was a way I could adapt this code
I wanted know How to rename a file in ftp server using java. I
Hi I wanted know the reasons of the following code void main() { class
I wanted to know if anyone has worked out how to disable the Public
Just wanted to know if ASP.NET supports other browsers as well as it supports
I wanted to know if its possible to have a QMaemo5ListPickSelector but one which
i wanted to know what's the best approach to develop such an epg matrix
I wanted to know how to check whether there is a value present in
I wanted know how the kernel is providing memory for simple C program .

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.