I want to compare to variables, both of type T extends Number. Now I want to know which of the two variables is greater than the other or equal. Unfortunately I
T extends Number
You can simply use Number's doubleValue() method to compare them; however you may find the results are not accurate enough for your needs.
Number's doubleValue()