K. Gadd (2013-10-30T10:44:02.000Z)
domenic at domenicdenicola.com (2013-11-03T22:25:16.171Z)
Unfortunately Claude, ES Math.sign is not Signum; it has five outputs, not three, like Oliver was asking about. Observe: ``` > Math.sign(1 / 0) 1 > Math.sign(-1 / 0) -1 > Math.sign(-1 / 0 * 0) NaN > Math.sign(0 * -1) -0 > Math.sign(0 * 1) 0 ``` Signum as specified in your link produces three outputs: 0, -1, and 1.