gemini06720 wrote:Steve, how about using decimal numbers (only) for both the latitude and longitude:
- rather than using something like: 48° 47' 48"
- how about using something like this: 48.79674000
This way you will not need to truncate nor round up the values - and those decimal-only values can easily be converted to their 'degrees/minutes/seconds' equivalent.
That's
is how I store them internally; I hit the 'bug' when I convert them for display in DMS or when required by APRS or similar.
I had a look for some other Delphi conversion routines for DMS on the web, and they have the same problem, and some of the web sites with conversion pages also have the same problem (e.g. put 174.7 into them, and they give 174/41/60). I just need to write my own routines instead of relying on dodgy floating point arithmetic...
By the way, Ned, please don't think that this thread is contributing to my demeanour; on the contrary, it's cheered me up - a
real bug reported in Cumulus!