Fix -0.0 == 0.0

compareTo is weird about -0 and +0. Compare them as doubles instead.