Thanks for the replies, looks as though I'll go back to FP maths. The reasons I was trying to avoid FP maths was, space -if I do it in 'C' my compiler bloats the size to something awful (so yes I'll ASM it), and as I won't be displaying fractions I thought the loss of precision in this application wouldn't be that important. And I was only going to do it in 'C' so that I could use it in an 16F873 and just change the header file and use it in an 18F252. Colin -- cdb, bodgy1@optusnet.com.au on 21/02/2003 I have always been a few Dendrites short of an Axon and believe me it shows. Light travels faster than sound. That's why some people appear bright until they speak! -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu