Re: Accuracy of converting semicircles to degrees

From: Fred Hiltz (not_at_home.ca)
Date: 11/27/04


Date: Sat, 27 Nov 2004 08:23:07 -0500

Bruce Stemplewski wrote:
> Garmin's formula for converting degrees to semicircles to degrees
> is:
>
> d = s * (180.0D / 2^31)
>
> When s = 119304640
>
> d = 9.9999994039536
>
> But 10 was entered on the GPS. Does anyone know of a more
> accurate formula for converting semicircles to degrees?

The difference lies not in the formula, but in the representation of
an angle by 31 bits (plus sign) in the computer. Here the difference
is less than one millionth of one degree.

-- 
Fred Hiltz,  fhiltz at yahoo dot com