Skip to content

K1326699/fraction-calculator

 
 

Repository files navigation

Fraction Calculator

Note: This project is no longer actively maintained. Use it at your own discretion.

Welcome to the Fraction Calculator! This program is designed to calculate various types of fractions. Whether you're adding, subtracting, multiplying, or dividing fractions, this calculator has got you covered.

Features

  • Basic Arithmetic: Perform addition, subtraction, multiplication, and division of fractions.
  • Mixed Fractions: Easily work with mixed fractions.
  • Error Handling: Robust error handling ensures smooth operation even with invalid inputs.
  • User-Friendly Interface: Simple terminal interface for easy interaction.

Getting Started

To get started with the Fraction Calculator, follow these steps:

  1. Clone this repository to your local machine.
  2. Navigate to the project directory.
  3. Run the program in your terminal using the appropriate command.

Usage

Once the program is running, follow the on-screen prompts to input the fractions you want to calculate. The calculator will display the result promptly.

Example:

<div style="font-family: monospace;">
<span>
  <p>Please enter the operation you want to do [+, -, *(Multiplication), /(Division), gcd or type "clear"]: +</p>
  <hr style="border: 1px dashed black;">
  <pre><span style="color:red;">
     \_/
      ?
    -----    +    -----
      ?             ?
  </span></pre>
  <p>Please enter the <b>numerator</b> of the <b>first</b> fraction as seen above, or type 'reset' to reset: 1</p>
  <hr style="border: 1px dashed black;">
  <pre>
         1             ?
       -----    +    -----
         ?             ?
         _
        / \
         |
         |
  </pre>
  <p>Please enter the <b>denominator</b> of the <b>first</b> fraction as seen above, or type 'reset' to reset: 2</p>
  <hr style="border: 1px dashed black;">
</span>
</div>

Reporting Issues

If you encounter any issues while using the Fraction Calculator, please feel free to report them in the Issues tab of this repository. While we may not actively work on resolving them, your feedback is valuable for potential future improvements.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Special thanks to the ErMax Team for their contributions to this project.

About

Calculates different types of fractions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 90.5%
  • Batchfile 9.5%