Compares two double values.
An integer indicating the comparison result: 0 for equality, -1 if a is less than b, and 1 if a is greater than b.
a
b
The first double value to compare.
The second double value to compare.