sgn(x) = 2u(x) - 1