Wonder if there are any nontrivial ways of finding number\'s sign (signum function)? May be shorter / faster / more elegant solutions than the obvious one
var sign = number >> 31 | -number >>> 31;
Superfast if you do not need Infinity and know that the number is an integer, found in openjdk-7 source: java.lang.Integer.signum()
java.lang.Integer.signum()