JSREF

JavaScript Math.sign()

The Math.sign() method retuns whether a number is negative, positive or zero.