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
More elegant version of fast solution:
var sign = number?number<0?-1:1:0