Questions tagged [largenumber]

Very large numbers often occur in fields such as mathematics, cosmology, cryptography and statistical mechanics. That numbers are significantly larger than those ordinarily used in everyday life, for instance in simple counting or in monetary transactions. The term typically refers to large positive integers, or more generally, large positive real numbers, but it may also be used in other contexts.

In computer science, arbitrary-precision arithmetic, also called bignum arithmetic, multiple precision arithmetic, or sometimes infinite-precision arithmetic, indicates that calculations are performed on numbers which digits of precision are limited only by the available memory of the host system. This contrasts with the faster fixed-precision arithmetic found in most arithmetic logic unit (ALU) hardware, which typically offers between 8 and 64 bits of precision.

Several modern programming languages have built-in support for large numbers (also known as infinite precision integers or bignums), such as , , and . Other languages which do not support this concept as a top-level construct may have libraries available to represent very large numbers using arrays of smaller variables, such as and class or package.

Other languages have libraries available for arbitrary-precision integer and floating-point math. Rather than store values as a fixed number of binary bits related to the size of the processor register, these implementations typically use variable-length arrays of digits.

453 questions
-6
votes
1 answer

Can I input very large number with only integer variables(java)?

I want to calculate(sum) with very large two numbers But when I use Scanner method there was the IOException when I input very large numbers. There are some rules. I can't use BigInterger I can use only purely integer. I can use…
-8
votes
1 answer

Sum of very very large numbers

Given two very large numbers a and b where a < b, the problem is to find the following sum: a + (a + 1) + (a + 2) + ... + (b - 2) + (b - 1) + b The numbers a and b can be very very large (can contain millions of digits). As these are very large…
-8
votes
1 answer

C Programming: How do I insert a number into an array such that each digit of the number goes into each field of the array?

I need to put a 1000 digit number and process each digit of it. Hence I wish to split the number into single digits and put them into each of the fields of an array of size 1000. How can I do this using C programming? EDIT: I have been working on…
kpks
  • 59
  • 1
  • 7
1 2 3
30
31