Returns -1 if x < 0, x if x == 0, 1 if x > 0, and NaN if x==NaN.
assert(sgn(168.1234) == 1); assert(sgn(-168.1234) == -1); assert(sgn(0.0) == 0); assert(sgn(-0.0) == 0);
See Implementation
Returns -1 if x < 0, x if x == 0, 1 if x > 0, and NaN if x==NaN.