DNL specifies the deviation of any adjacent code in the transfer function of a DAC or ADC from an ideal code width of 1 LSB. DNL is determined by subtracting the locations of successive code transition points after compensating for gain and offset errors. A positive DNL implies that a code is longer than the ideal code width. A negative DNL implies a code is shorter than the ideal width. DNL is measured in the increasing code direction of the transfer curve. The transition of code N is compared to that of Code N+1.