Skip to content

Levistus71/SDF_project_1

Repository files navigation

ArbitraryArithmetic

Overview

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.


Features

  • Infinite precision for Integers and Floats.
    • Operations include:
      • addition (add)
      • subtraction (subtract)
      • multiplication (multiply)
      • division (divide)
  • CLI java file (MyInfArith.class)
  • Ant based build system
  • A python script for building and running java CLI
  • Docker support

Build & Run

Option 1: Using Apache Ant

Compile & Package

ant
ant compile-all

Clean Build

ant clean

Option 2: Using the Python Script (run.py)

This script can be used for

  1. compiling the java files
  2. running the java cli file

It asks for a preference when the script is run.


Option 3: Using Docker

Use Docker Image to create a new container

docker run -it docker-image-name bash

Run Program In the new Interactive Docker container

java -cp build MyInfArith <int|float> <add|subtract|multiply|divide> <num1> <num2>

About

project 1 in sdf (creating ints and floats using strings st it doesnt overflow)

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors