Project Details

Project information

  • Name: Arbitrary Precision Calculator
  • Category: Command Line Interface Program
  • Language: C
  • Project URL: APC

Arbitrary Precision Calculator - A command line application program

A C-based command-line calculator that handles arithmetic on integers of unlimited size using a custom doubly linked list implementation. It performs addition, subtraction, multiplication, and division through manual arithmetic logic, showcasing strong fundamentals in data structures, memory management, and low-level algorithm design.

Development Highlights

Features implemented:

  • 🧮 Arbitrary Precision Arithmetic – Performs calculations on integers of unlimited size beyond built-in data type limits
  • ➕➖✖️➗ Core Operations – Supports addition, subtraction, multiplication, and division using manual digit-by-digit logic
  • 🧠 Argument Validation – Ensures correct command-line syntax, valid operands, and supported arithmetic operators
  • 🔢 Custom Number Representation – Uses a doubly linked list to store and process each digit individually
  • ⚙️ Sign Handling – Correctly processes positive and negative numbers for all arithmetic operations
  • 🚫 Leading Zero Management – Eliminates unnecessary leading zeros in both input operands and output results
  • 🧱 Modular Design – Organized source and header files for parsing, operations, data structures, and utility functions
  • 💾 Dynamic Memory Management – Allocates and frees memory safely to prevent leaks and dangling pointers
  • 🚨 Error Detection – Handles invalid inputs, unsupported operators, division by zero, and malformed arguments gracefully
  • 💻 Command-Line Interface – Lightweight and intuitive CLI-based calculator designed for large-number computations