Digital electronics represent signals by discrete levels, rather than by a continuous range. In most cases these states are represented by two voltage levels: one near to zero volts and a higher level near the supply voltage.
Digital techniques are useful because it is easier to get an electronic device to switch into one of a number of known states than to accurately reproduce a continuous range of values.
Digital electronics are usually made from large assemblies of logic gates, simple electronic representations of Boolean logic functions.[1]