Returns the sign of a number