The basic measurement of how well analog-to-digital and digital-to-analog conversions are performed. To test for linearity, a mathematically perfect diagonal line is converted and then compared to a copy of itself. The difference between the two lines is calculated to show linearity of the system and is given as a percentage or range of least significant bits.