code: public static double toHeading(int fsuipcHeading) {
  		double hdg = fsuipcHeading * 8.3819E-008; //8.1716E-008D;
          if (hdg < 0) { hdg += 360; }
          return (new BigDecimal(hdg)).setScale(2, RoundingMode.HALF_UP).doubleValue();
  	}
docs: *
  *360/(65536*65536) for degrees
  if (hdg < 0) { hdg += 360; }