Fraction representation and comparison