Can anyone explain how this is done.
I am importing a couple values from a class and trying to divide them to get a fractional output from two int variables. I currently get a 0 for a and b when I divide. None of the variables are zero.
Rational operator < (Rational c)// compares two fractions <
float a = (numerator / denominator);
float b = c.numerator / c.denominator;
if (a < b)
truth = 0;
truth = 1;