An electronic or electromechanical device which produces a unique digital output (in coded form) for each value of an analogue or digital input; in an absolute position encoder, for instance, the position following any incremental movement can be determined directly, without reference to the starting position.