On 8/3/07, Asad Sharif wrote: > > You are right it AN575, IEEE 754 Compliant Floating Point Routines how can > in my code. > > Thanks > Asad > Asad, I have used AN575 successfully in a PID controller. There is a bug in the round-to-integer functionality. See http://www.piclist.com/techref/microchip/math/round/fp-24bint-ng.htm for the fix if you need to use that function. Wikipedia has a decent article on floating-point at http://en.wikipedia.org/wiki/IEEE_754 that I found quite helpful. Microchip doesn't use IEEE 754 floats, but the priciples are the same. Some of the routines take a lot of cycles to run, so you can't do lots of floating point operations per second. You didn't post an exact question. If you get stuck, post the error message to the list and you'll get specific help. Regards, Mark markrages@gmail -- Mark Rages, Engineer Midwest Telecine LLC markrages@midwesttelecine.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist