A
A
Alexander Nikolaevich2016-06-29 17:55:17
Pascal
Alexander Nikolaevich, 2016-06-29 17:55:17

What data type should be used for a number that is 80 characters long?

What type of data should be used in a Pascal program so that it inserts a number of 80 characters long?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Rou1997, 2016-06-29
@Rou1997

string or implement long arithmetic on arrays, the algorithm of arithmetic operations is like in the "column" school.

S
SolidMinus, 2016-06-29
@SolidMinus

string
And then simply implement the operators as functions sum, multiply, divide, etc., which will perform the corresponding actions on long numbers as strings.
It's called "long arithmetic", google

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question