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
System.out.println(new BigDecimal(0.1d).toPlainString()); System.out.println(BigDecimal.valueOf(0.1d).toPlainString()); System.out.println(BigDecimal.valueOf(0.1f).toPlainString()); System.out.println(Float.valueOf(0.1f).toString()); System.out.println(Float.valueOf(0.1f).doubleValue());