Format the display according to units.