M
M
Mushkiter0072017-10-01 21:37:40
Programming
Mushkiter007, 2017-10-01 21:37:40

Perhaps a stupid question. But how do precise calculators do when there are limits on the range of data types (int, doble, etc.)?

Let's say I need to perform actions with a 40-digit number. how to do it? Do you think the question is clear?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
d-stream, 2017-10-01
@d-stream

How can you add, subtract, multiply, divide with numbers of any length on a piece of paper "in a column"?
Exactly the same here. More precisely, there are two options here - use some library to work with giant numbers with giant accuracy, or write your own. Depending on tastes and preferences - up to the implementation of a sort of complete model of a "computing machine".
Naturally, this is not counting the techniques that are used in calculations on a slide rule.

A
Andrew K., 2017-10-01
@gdi32dll

https://ru.wikipedia.org/wiki/%D0%94%D0%BB%D0%B8%D...

1
15432, 2017-10-01
@15432

There are libraries for working with large numbers (bigdigits.c) that store numbers in multibyte arrays.
Restrictions on data types, and the data types themselves, are introduced by the specification of the programming language.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question