GMP is a free library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating-point numbers.