Measuring with a glass pH electrode is recommended when precise values are necessary for decision making, as when diagnosing renal tubular acidosis; in these cases, a layer of mineral oil should be added to the urine specimen to prevent escape of carbon dioxide.