Published on 10 October 2019 (Updated: 10 May 2022)

Welcome to the Fraction Math page! Here, you'll find a description of the project as well as a list of sample programs written in various languages.

Description

Languages like python have built-in utilities or functions for working with fractions.
Many of these fractions functions follow a similar pattern across programming languages:
takes a numerator and a denomenator as an attribute.
Perform basic arithmatic and relational operations with operator overloading.

Requirements

In general, a fractions library should perform the following:

Perform arithmatic operation like multiplications, addition etc.

Give output for relational operations like >=, >, == etc.

More specifically, begin with creating object instance of fraction class with two attributes:
numerator and denomenator.Using operator overloading feature of langauge implement basic arithmatic
and relational operaions.

For instance ./fraction-math "6/2" "+" "1/4" would output 13/4

In addition, there should be some error handling for situations where the user
doesn't supply any input.