Hi Darrel , I looked through the PBP manual to get clarity on the "+R2.15" in the code you sent me but I could not find it. I presume that R2.15 means register 2 bit 15 and that it must be used immediately in the formula else the value will change when the next statement is executed - am I correct?

My project is working very well and I have enough memory to add some refinement. I now want to make the factor a variable and it will generated in the program with a value between about 1.111 and 3.999. Do you have any magic that I can apply.

I did try the PBP manual and searched through some of the floating point threads but I don't find anything that applies. The Microchip floating point routines would use too much flash. I also thought of using a lookup table but I don't have sufficient eeprom.

Thank You
Hebe