What would be the best way to do the following.
Enter a very long number, lets say 500,000 digits long without it going into scientific notation; and then am able to
Python and Java have native support, libraries exist for C++, C, .NET, ...
MIT/GNU Scheme has support for arbitrarily large numbers.
I find Python quite good for this.
I know that Erlang has support for unlimited size int arithmetics.
I rather like Ruby and Python because they automatically switch from Fixnum
to Bignum
. (Python: int
to long
.)
In C or C++, you can use GMP (Gnu Multi-Precision library).
In Perl, you can use the bignum module.