Skip to content

Сalculator capable of performing standard operations with the widest digits of numbers

Notifications You must be signed in to change notification settings

andrijzyn/Calculator-of-various-bit-systems

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This calculator is a simple yet effective tool that enables users to perform fundamental arithmetic operations, including addition, subtraction, multiplication, and division, on numbers with varying bases.

The result will be returned in the higher base between the two operands. Additionally, the script is capable of converting numbers from one base to another.

Explanation:

  • Operand and Base: operand_base represents a number in the specified base. For example, 101_2 is 101 in binary.
  • Operator: Supported operators are +, -, *, and /.
  • Output Base: The result will be displayed in the larger base of the two operands.

Note

With the recent update, an intuitive user interface (UI) has been added, enhancing user experience and making it easier to interact with the calculator.

output_image

Photo made by Photo Contraster & Photo Rounder

Main Functions

  1. convert_to_decimal(number, base): Converts a number from a specified base to its decimal equivalent.
  2. convert_from_decimal(number, base): Converts a decimal number to a specified base.
  3. add_in_base(num1, num2, base): Performs addition in a specified base.
  4. subtract_in_base(num1, num2, base): Performs subtraction in a specified base.
  5. multiply_in_base(num1, num2, base): Performs multiplication in a specified base.
  6. divide_in_base(num1, num2, base): Performs division in a specified base.
  7. compare_in_base(num1, num2, base): Compares two numbers in a given base.
  8. convert_to_base(num, base): Converts a decimal number to a specified base.
  9. parse_math_expression(expression): Parses the input expression and extracts relevant information

Installation

  1. Clone the repository:
    git clone https://github.com/andrijzyn/Calculator-of-various-bit-systems.git
  2. Navigate to the project directory:
    cd Calculator-of-various-bit-systems
  3. Run the application:
    python main.py
  4. After that, you can open the ~/UI/index.html file and start using the

Technologies

  • Python
  • Flask, CORS
  • Web(GUI) - HTML, CSS, JS

About

Сalculator capable of performing standard operations with the widest digits of numbers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published