Compares the two specified double values. The sign
of the integer value returned is the same as that of the
integer that would be returned by the call:
new Double(d1).compareTo(new Double(d2))
d1 | the first double to compare | |
d2 | the second double to compare |
0 if d1 is
numerically equal to d2; a value less than
0 if d1 is numerically less than
d2; and a value greater than 0
if d1 is numerically greater than
d2.
Diagram: Number