Apfloat for Java

Apfloat is a high performance arbitrary precision arithmetic package. You can perform calculations with a precision of millions of digits with it. It's as simple to use as Java's BigDecimal or BigInteger classes, but performs a lot better with extreme precision numbers (more than a few hundred digits). Also, a full suite of mathematical functions for arbitrary precision numbers are available: all those existing in java.lang.Math and more. Apfloat is distributed under the terms of the GNU Lesser General Public License and comes with NO WARRANTIES.

A C++ version is also available.

Apfloat requires Java 5.0. The older 1.0.x version of aploat works also with Java 1.4.2.

Download the whole package for apfloat version 1.4.1 (including sources, the binary libraries and documentation), or individual components only: the library or sample applications.

Some sample applets are available, including an arbitrary precision calculator applet and an applet for calculating pi.

JavaDocs for apfloat are available on-line. To program against the apfloat library, you only need to know the apfloat API. Some implementation notes are also available. There is no separate documentation for apfloat for Java – basically all information one should need is in the JavaDocs.

The apfloat unit test suite for JUnit can be used to test apfloat on a new platform or JVM. It should cover about 97% of apfloat code, which is practically everything.

A list of known bugs and issues.

Download old releases.

People who have contributed to apfloat Java.


Bug reports, questions and comments should be sent to the author.

Last updated: August 22nd, 2007