What programming languages support arbitrary precision arithmetic

arbitrary-precisionbigdecimalprogramming-languages

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

Best Solution

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.

Related Question