Table of Contents
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,
- Subtract the fractional part from the degree decimal value to get the degree value.
- Multiply the fractional part of the degree decimal value by 60 to get the fractional representation of minutes.
- Subtract the decimal part from this value to get the minutes.
- 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*}
1 thought on “HTML/JS: Degree decimal to deg-min-sec”