Fraction Class Reference

#include <fraction.h>

Public Member Functions

 Fraction ()=default
 
 Fraction (Float r)
 
void Reduce ()
 
Float GetNumerator () const
 
Float GetDenominator () const
 

Private Attributes

Float numerator
 
Float denominator
 

Constructor & Destructor Documentation

◆ Fraction() [1/2]

Fraction ( )
default

◆ Fraction() [2/2]

Fraction ( Float  r)
explicit

Member Function Documentation

◆ Reduce()

void Reduce ( )

◆ GetNumerator()

Float GetNumerator ( ) const

◆ GetDenominator()

Float GetDenominator ( ) const

Member Data Documentation

◆ numerator

Float numerator
private

◆ denominator

Float denominator
private