restore sign of number variable