DMS2Deg Routines
Converts Degrees/Minutes/Seconds into Degrees as Decimal.

Unit
QESBPCSMath

Overloaded Variants
Function DMS2Deg(const Degs, Mins, Secs: Extended): Extended;
Function DMS2Deg(const Degs, Mins: Integer; const Secs: Extended): Extended;

Declaration
Function DMS2Deg(const Degs, Mins, Secs: Extended): Extended;

Parameters
Degs Degrees Component as Input.
Mins Minutes Component as Input.
Secs Seconds Component as Input.

Category
Arithmetic Routines for Floats
Routines for converting Positions

Implementation

function DMS2Deg (const Degs, Mins, Secs: Extended): Extended;
begin
     Result := Degs + Mins / 60 + Secs / 3600
End;

Declaration
Function DMS2Deg(const Degs, Mins: Integer; const Secs: Extended): Extended;

Implementation

function DMS2Deg (const Degs, Mins: Integer; const Secs: Extended): Extended;
begin
     Result := Degs + Mins / 60 + Secs / 3600
End;


HTML generated by Time2HELP
http://www.time2help.com