1

This question already has an answer here:

I'm working on a piece of software that converts Lat & Long from DMS (35° 19′ 20″ N) to decimal degrees.

At the moment, the code creates number with 16 digits after the decimal point, which seems absurd.

Since we never have more than 2 digits for the arcseconds, would it be ok to round the decimal degrees we calculate? I'd like to round to the nearest 4th digit.

marked as duplicate by Community Jan 12 '17 at 13:38

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • I guess 5 decimal places are enough if I only have integer seconds. – Manu Jan 12 '17 at 13:39