HTML/JS: Degree decimal to deg-min-sec

Degree decimal to degrees minutes seconds converter

The javascript converter will convert the input degree decimal values to their equivalent degrees minutes seconds value.

Degree decimal

Formula

To convert degree decimal to degrees minutes seconds, we use the following steps,

  1. Subtract the fractional part from the degree decimal value to get the degree value.
  2. Multiply the fractional part of the degree decimal value by 60 to get the fractional representation of minutes.
    1. Subtract the decimal part from this value to get the minutes.
  3. Multiply the fractional part from step # 2 with 60 to get the seconds.

Example:

Here we convert 12.203333 from degree decimal to degrees minutes seconds using the procedure defined above,

\begin{equation*}
\begin{aligned}
\text{deg} &= 12.20333 - 0.20333 = 12^\circ\\
\text{min} &= 0.20333 \times 60 = 12.1998 \rightarrow  12.1998 - 0.1998 = 12^\prime\\
\text{sec} &= 0.1998\times 60 = 11.988^{\prime\prime}
\end{aligned}
\end{equation*}

See also

DD & DMS

  1. deg-min-sec to degree decimal

DD & HMS

  1. Degree decimal to hour-min-sec
  2. hour-min-sec to degree decimal

1 thought on “HTML/JS: Degree decimal to deg-min-sec

Your thoughts