code: protected static function rationalToDecimal(array $components)
      {
          foreach ($components as $key => $value) {
              $rationalParts = explode('/', $value);
              if (!empty($rationalParts[1])) {
                  $components[$key] = $rationalParts[0] / $rationalParts[1];
              } else {
                  $components[$key] = 0;
              }
          }
          list($hours, $minutes, $seconds) = $components;
  
          return $hours + ($minutes / 60) + ($seconds / 3600);
      }
docs: Converts an EXIF rational into its decimal representation.
  
  @param array $components
  @return float