ArbitraryArithmetic builds a custom framework in Java for doing math with high precision — beyond what normal data types can handle. Instead of leaning on Java’s built-in number tools, it stores numbers as strings and handles all the math manually, from scratch, using core arithmetic algorithms.
- Infinite precision for Integers and Floats.
- Operations include:
- addition (add)
- subtraction (subtract)
- multiplication (multiply)
- division (divide)
- Operations include:
- CLI java file (MyInfArith.class)
- Ant based build system
- A python script for building and running java CLI
- Docker support
antant compile-allant cleanThis script can be used for
- compiling the java files
- running the java cli file
It asks for a preference when the script is run.
docker run -it docker-image-name bashjava -cp build MyInfArith <int|float> <add|subtract|multiply|divide> <num1> <num2>