JumbleDuck
Well-Known Member
It's not real code, just pseudo-code to represent how to do it by hand. In real code of navigation devices I have worked on the internal representation of coordinates is in double precision floating point numbers with a single number in D.d format.
That appears to be the ISO recommendation too: store as degrees, format as necessary.