Skip to content

➗ Struct that implements the logic of the reduced fraction, and NUnit tests for its verification. Conversion operations to/from int, double are implemented. Arithmetic operations on reduced fractions are implemented.

Notifications You must be signed in to change notification settings

idvlop/Reduced-Fraction

Repository files navigation

Struct that implements the logic of the reduced fraction, and NUnit tests for its verification. Conversion operations to/from int, double are implemented. Arithmetic operations on reduced fractions are implemented.

Operations implemented:

  1. ReduceFraction * ReduceFraction
  2. ReduceFraction / ReduceFraction
  3. ReduceFraction + ReduceFraction
  4. ReduceFraction - ReduceFraction
  5. ReduceFraction * int
  6. ReduceFraction / int
  7. ReduceFraction + int
  8. ReduceFraction - int

Convertations implemented:

  1. ReduceFraction to double (implicit)
  2. ReduceFraction to int (explicit)
  3. int to ReduceFraction (implicit)

Learn more: https://mathworld.wolfram.com/ReducedFraction.html

About

➗ Struct that implements the logic of the reduced fraction, and NUnit tests for its verification. Conversion operations to/from int, double are implemented. Arithmetic operations on reduced fractions are implemented.

Topics

Resources

Stars

Watchers

Forks

Languages