That doesn't matter because Math.max() knows the difference between +0.0 and -0.0.
Try it and you'll see.
It does that because of the way they implement arithmetic, not about an inherent property of the mathematical function `max`. The problem has to be solved once.