Let's say I need to do some action with a 40-digit number. how to do it? Think the question is clear?

asked June 14th 19 at 21:05

3 answers

answered on June 14th 19 at 21:07

How can a piece of paper "in a column" to perform addition, subtraction, multiplication, and division with numbers of any length?

Exactly the same here. More precisely, there are two options - to use some library to work with huge numbers with huge accuracy, or write your own. Depending on tastes and preferences - up to the implementation of such a complete model "calculating machines".

Of course that's not counting the techniques that are used in calculations on a slide rule.

Exactly the same here. More precisely, there are two options - to use some library to work with huge numbers with huge accuracy, or write your own. Depending on tastes and preferences - up to the implementation of such a complete model "calculating machines".

Of course that's not counting the techniques that are used in calculations on a slide rule.

answered on June 14th 19 at 21:09

answered on June 14th 19 at 21:11

There are libraries for working with large numbers (bigdigits.c) that store the number in multi-byte arrays.

Restrictions on data types, and data types are introduced by the specification of the programming language.

Restrictions on data types, and data types are introduced by the specification of the programming language.

Find more questions by tags Programming

~~"in a column"~~driving registers - delta89 commented on June 14th 19 at 21:13