As much as I love Guava I think this is overkill ;) This should be enough: http://docs.oracle.com/javase/6/docs/api/java/lang/Double.html#compareTo(java.lang.Double)