function x = decdeg(dms)
% X = DECDEG(DMS)  This function takes an angle in D.MMSS format
%     and returns the angle in decimal degrees

deg = fix(dms);
min = fix((dms-deg+1e-14)*100);
sec = (((dms-deg+1e-14)*100)-min)*100;
x = deg + (min/60) + (sec/3600);
return




