An apparatus for position, length or angle determination, comprising - a first and a second part (14, 18) which are movable relative to one another; - a coding applied to the first part, wherein the coding comprises a plurality of code sections, wherein the code sections comprise regions of a first kind and regions of a second kind, wherein the regions of a first and second kind create the coding; - a readout apparatus attached to the second part for detecting the coding, wherein the readout apparatus comprises a plurality of sensors which are each configured to detect code sections and each output a measurement value; and - an evaluation unit which determines a relative position between the first and second part (14, 18) based on the measurement values detected by the readout apparatus, wherein the apparatus is configured, in a first operating state, to detect a rough value of the measurement values with a resolution of one bit based on a predetermined threshold value, and the apparatus is further configured, in a second operating state, to detect a fine value with a resolution of at least two bits based on at least one of the measurement values from at least one of the sensors, characterized in that the fine value is detected by applying at least one of the measurement values of the at least one sensor to a comparator and by comparing the measurement value with a comparison value generated by a digital-to-analog converter, with the comparison value being a modified threshold value. - a first and a second part (14, 18) which are movable relative to one another; - a coding applied to the first part, wherein the coding comprises a plurality of code sections, wherein the code sections comprise regions of a first kind and regions of a second kind, wherein the regions of a first and second kind create the coding; - a readout apparatus attached to the second part for detecting the coding, wherein the readout apparatus comprises a plurality of sensors which are each configured to detect code sections and each output a measurement value; and - an evaluation unit which determines a relative position between the first and second part (14, 18) based on the measurement values detected by the readout apparatus, wherein the apparatus is configured, in a first operating state, to detect a rough value of the measurement values with a resolution of one bit based on a predetermined threshold value, and the apparatus is further configured, in a second operating state, to detect a fine value with a resolution of at least two bits based on at least one of the measurement values from at least one of the sensors, characterized in that the fine value is detected by applying at least one of the measurement values of the at least one sensor to a comparator and by comparing the measurement value with a comparison value generated by a digital-to-analog converter, with the comparison value being a modified threshold value. wherein the apparatus is configured, in a first operating state, to detect a rough value of the measurement values with a resolution of one bit based on a predetermined threshold value, and the apparatus is further configured, in a second operating state, to detect a fine value with a resolution of at least two bits based on at least one of the measurement values from at least one of the sensors, characterized in that the fine value is detected by applying at least one of the measurement values of the at least one sensor to a comparator and by comparing the measurement value with a comparison value generated by a digital-to-analog converter, with the comparison value being a modified threshold value.