# Apfloat

Copyright © 2025 Mikko Tommila

This work is licensed under the terms of the MIT license. See the [MIT License](LICENSE.txt) for more details.

If you have any questions or need a different type of license, please [contact the author](mailto:Mikko.Tommila@apfloat.org).

## Building the Library

To build the library quickly, without running unit tests (takes about 20 minutes), without generating JavaDocs and without signing with GPG run:

`mvn clean install -Dgpg.skip -Djarsigner.skip -Dmaven.javadoc.skip -DskipTests`

To build the signed applet files, you need to first generate a signing key, e.g. with:

`keytool -genkeypair -validity 21915 -dname "cn=Your Name, o=example.com" -storepass password -keypass password -alias mykey`

and then build without -Djarsigner.skip.

## Running the Sample Applications

To run the arbitrary precision calculator, run:

`mvn -pl :apfloat-calc exec:java -Dexec.mainClass=org.apfloat.calc.CalculatorGUI`

To run the pi calculator, run:

`mvn -pl :apfloat-samples exec:java -Dexec.mainClass=org.apfloat.samples.PiParallelGUI`

## Apfloat website

Go to the [apfloat for Java website](https://www.apfloat.org/apfloat_java/).
