What programming languages support arbitrary precision arithmetic?

Matt Gregory picture Matt Gregory · Sep 27, 2008 · Viewed 10.7k times · Source

What programming languages support arbitrary precision arithmetic and could you give a short example of how to print an arbitrary number of digits?

Answer

Logan picture Logan · Sep 27, 2008

Some languages have this support built in. For example, take a look at java.math.BigDecimal in Java, or decimal.Decimal in Python.

Other languages frequently have a library available to provide this feature. For example, in C you could use GMP or other options.

The "Arbitrary-precision software" section of this article gives a good rundown of your options.