How does an altimeter deal with the non-linear pressure gradient?
It uses a model called The International Standard Atmosphere (ISA) - so may be inaccurate if you don't have one of those to fly through :-)