dans_pic_stuff wrote: > > Is it possible to do this math calculation in a 16f84 program: > X = (X*1.62) + 25 > I'm using PBP and it tells me that .62 is a bad variable modifier. If I > can't do decimal numbers then any ideas on how to do this same equation > another way? I don't care if the answer is rounded or truncated. It just > has to be somewhat close but not super accurate.. Are you converting miles to kilometers?? :o) -Roman PS. Try multiply by 26, divide by 16. The divide by 16 is just a right shift. -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body