FractionCplusplus

using

  • include ZFraction.h for use
  • Zfraction name(numerator, denominator)

available operator

: compare if an fraction is greater than another (value), < : less, <= : less or equal, >= : greater or equal, + : add, – : minus, * : time, / : divide

all shortcut operator are also available

such as : +=, -=, /=, *=

GitHub

View Github