Since it is a double value, -0.0 is less than 0.0 For float and double types, values are compared by considering the precisions. If you change your program to Integral type, Math.min(0,-0) then the output will be 0.
Friends help you move. Good friends help you move bodies. This tiny ad will help:
a bit of art, as a gift, that will fit in a stocking