Floating point calculations on 16 uC



Hi,

I'm doing floating point calculations on a Fujitsu MB90F474 16bit uC.
All float calculations are done in the main loop context. Sometimes the
result returns a garbage value. This seems to happen only when
interrupts are enabled. Note that there are no globals or shared data
involved.

If anyone has had similar problems please let me know. Any advice when
using floating point calculations would be appreciated.

Regards
Dieter

.



Relevant Pages

  • Re: Errors cancel sometimes
    ... I thought that it was remarkable, so I'm remarking on it. ... Goldberg's "What Every Computer Scientist Should Know About Floating ... elements of accurate numerical calculations on a computer as well. ... I'd be happy to have any pointers to more modern works that cover the ...
    (comp.programming)
  • Re: TDD: Test-Driven Design or Test-Driven Development?
    ... design idea, and conflating it. ... > requires one to implement floating point calculations. ... This decision may affect how the calculations are coded. ... Please describe the Test Driven Development process that you think we are ...
    (comp.object)
  • Re: Program Computes incorrectly under VPC.
    ... >>owners of this software that it should not be used for floating point math. ... > NONE of the spreadsheets in the world today have EVER ... > calculations, ... > percentage of algorithms will fail in VPC. ...
    (microsoft.public.mac.virtualpc)
  • Re: IEEE Decimal Float on Itanium
    ... I'm guessing you're contemplating some specific application here, and probably something involving PL/I. ... Currency calculations. ... switched a billing and management system from its floating point implementation over to integer calculations eons back. ...
    (comp.os.vms)
  • Re: demonic problem descriptions
    ... > unacceptable for such calculations, ... we can't imagine the horrible confusion that surrounded pre-1985 floating ... Note that IBM floats had an interesting twist; their radix was 16, ... but when I first ported Franz Lisp to the IBM 360 ...
    (comp.lang.lisp)