Claude Pache (2013-10-30T12:08:01.000Z)
domenic at domenicdenicola.com (2013-11-03T22:25:35.942Z)
Sure, ES `Math.sign` *cannot* be Signum, because real numbers *cannot* be represented in ES: Numbers in ES are just an *approximation* of a mathematical concept. From a mathematical point of view, `+0` and `-0` is the same thing and `NaN` does not exist; so that `Math.sign` has really three meaningful outputs when interpreted mathematically: -1, 0, and 1. In general, I expect that the `Math` namespace to hold functions that correspond to definite mathematical operations, and to provide an approximation of those operations, as close as it is reasonable when taking in account the similarities and the differences between numbers in ES and numbers in maths. (From that point of view, I think that `Math.imul` and `Math.fround` should probably not belong to the `Math` namespace... but I digress.)