On 08.02.2013 20:59, Dirk Hohndel wrote: > double surface - dive->dc.surface_pressure.mbar ? dive->dc.surface_pressure.mbar / 1000.0 : 1.013; Just a small not to remind you to the existing of the predefined SURFACE_PRESSURE :-) Thx, Jan