Digital value of analog signals depends on range between signal and threshold