convert signal value to integer