avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-libc-dev] 64-bit doubles


From: Bob Paddock
Subject: Re: [avr-libc-dev] 64-bit doubles
Date: Sun, 21 Dec 2008 06:29:47 -0500

On Sat, Dec 20, 2008 at 7:37 AM, Ron Kreymborg <address@hidden> wrote:

> The math involved in solving the sun tracking between the sun and the
> target
> within 0.01 degrees. If you have or have seen a solution that works with
> 24-bit floats I would be very interested.


For a Sun  Tracking application  I am making the, possibly invalid,
assumption
that your numeric range is limited to 0.00 to 359.99.

My solution would be to change the domain space.  Treat the calculations as
a monetary calculation and do all of the math in BCD.  Issues of rounding
and
non-integer math are removed.

Ron, on gmail your messages keep coming across as "noname" attachments,
might want to check your email client settings.


-- 
http://www.wearablesmartsensors.com/
http://www.softwaresafety.net/
http://www.designer-iii.com/
http://www.unusualresearch.com/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]