Phil wrote: > I've been to the Microchip site where I found a lot of documents > that discuss > floating point maths but no code examples. > > Can someone please help? Hi Phil, It would appear that fixed-point math is all you really need: Perhaps you could represent all your numbers in signed 16.8 fixed point format. (16 bits for the integer portion of the number and 8 bits for the fractional portion) Look up AN617 (Fixed Point Routines) on Microchip's web site. Best regards, Ken Pergola -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body