Do you define equals?
From the javadocs for Comparable:
It is strongly recommended (though not required) that natural orderings be consistent with equals.
What is 'temp' and 'num' used for?
Do confuse javaranchers?
If getDenominator returns the private double denominator, you could simplify your code to:
after checking for instance-of.