Fraction.hpp

Tools to maintain a more exact fraction (rather than lose precision as a double)

Note

Status: ALPHA

class Fraction
#include <Fraction.hpp>

Public Functions

inline Fraction(int64_t in_num = 0, int64_t in_denom = 1)
Fraction(const Fraction&) = default
inline int64_t GetNumerator() const
inline int64_t GetDenomonator() const

Private Functions

inline void Reduce()

Private Members

int64_t num
int64_t denom