In that implementation, each integer is a character string.
Each character is a decimal (base 10) digit, '0' through '9'.
There are more efficient ways to implement very large integers,
but the Symbolic C++ implementation is more portable
and more illustrative of how large integers work.
|
|
some other representations such as binary
representation may need some less straightforward
algorithm for implementing the arithmetic operations.
Since simplicity is one of our primary goals,
we choose the decimal representation. [ 1 ]
|
|
|
 |
References:
|
1.
|
Shi, Steeb & Hardy,
Symbolic C++
2nd ed.,
p. 202.
|
|