/* Calculates the altitude (in meters) from the specified atmospheric pressure (in hPa), sea-level pressure (in hPa), and temperature (in °C) */
float pressureToAltitude(float seaLevel, float atmospheric, float temp)
/* Calculates the altitude (in meters) from the specified atmospheric pressure (in hPa), sea-level pressure (in hPa), and temperature (in °C) */
float pressureToAltitude(float seaLevel, float atmospheric, float temp)
{
  return (((float)pow((seaLevel/atmospheric), 0.190223F) - 1.0F)
         * (temp + 273.15F)) / 0.0065F;
}