Hi, Thanks to all those who replied to my question about lookup tables, with a little help from a microchip application note they're now working fine. I'm now having problems doing the conversion the other way though(!). I need to convert three 8bit values (hundreds, tens, units - maximum values for each of these bytes are 3,5,9 respectively.) into a single byte (integer) value in the decimal range 0-114. So, basically, I need to multiply the hundreds byte by 31.6, tens by 3.16 and units by 0.316, then add up the values, round off to the nearest integer value and store as an 8 bit value. Can any kind soul give me some direction as to how to get started on doing this? I've got about 2 weeks worth of experience with programming PICs (indeed, with programming anything) - so pointers to some 'cut and paste-able' code would be great. Chris. The Information contained in this E-Mail and any subsequent correspondence is private and is intended solely for the intended recipient(s). For those other than the recipient any disclosure, copying, distribution, or any action taken or omitted to be taken in reliance on such information is prohibited and may be unlawful. -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body