I am trying to work on a simple page to convert from degrees, degrees & minutes, or degree-minute-second to each other. There should be a button on the end of each line to convert the info on that line to the other two forms, but the buttons seem to all be at the end of the previous line instead of where they should be.
Assuming your calculations are done in 'DoDeg', 'DoMin' and 'DoSec' (not provided in post),
if the output is to be in decimal format and you want to limit it to 4 significant places
use a X.toFixed(4) command where 'X' is the calculated value to limit.
I don't know enough about GPS to know if this is significant or not,
just information to consider from reading your referenced page and
clicking on the JS calculator. Change only to avoid extra display digits.