/Binary-Calculator

Binary Calculator is an command line arbitrary precision calculator. Implementation of Unix based command 'bc' in C programming language

Primary LanguageC

Binary Calculator (Infinite Precision Calculator)

Binary calculator implemented using linked list and stack data structures to handle arithmetic operations on large binary numbers.

Description

  • This project is a Command-line Arbitrary Precision Calculator implemented in C, inspired by the Unix-based command 'bc'.
  • The calculator is designed to perform operations on infinite numbers, allowing for calculations with extremely large numbers.

Operations which can be performed :

  • '+' : Addition
  • '-' : Subtraction
  • '*' : Multiplication
  • '/' : Division
  • '%' : Modulo
  • '^' : Power

  • Arithmetic Operations: Addition, subtraction, multiplication, division, and modulus operations are supported.
  • Precedence Handling: Expressions are evaluated according to their precedence using parentheses.
  • Arbitrary Precision: The calculator handles numbers with arbitrary precision by utilizing linked list and stack data structures.

ScreenShot of the result :

bc_final

Steps to run the project :

Step 1: Clone the repository.
Step 2: Run the make command to compile all the required files.
Step 3: Type ./main in terminal to run the project.

Author