Oliver Hunt (2013-10-30T03:54:11.000Z)
As currently specified Math.sign has 5 different return values and, as far as i can tell, does not solve the problem I thought it was trying to address. That is the difficulty in distinguishing positive and negative numbers without having to manually do the divide -> ±Infinity cruft.

What is the rational for this behaviour?

Current Math.sign is a new, and unexpectedly complex API that doesn’t solve the common use case.

—Oliver
domenic at domenicdenicola.com (2013-11-03T22:24:34.226Z)
As currently specified Math.sign has 5 different return values and, as far as i can tell, does not solve the problem I thought it was trying to address. That is the difficulty in distinguishing positive and negative numbers without having to manually do the divide -> ±Infinity cruft.

What is the rational for this behaviour?

Current Math.sign is a new, and unexpectedly complex API that doesn’t solve the common use case.