Thanks Scott. I've been there before as well as I do deep search in Piclist mails database where I found the solution to this motor signal. And I appreciate your replay and the twist code,... (claritas) Andy's replay is exactly what I need. The only problem is when: a < b in the expression a + (b-a)/16 I think is because some problem in the first subtraction. That's is why I look for the sign before the operation so, in this particular case i.e. F32-F3F results in F3E which is the correct answer, 1F3E is not. Results can be compared on both codes. Mines is inefficient. The a= .9375a + .0625b solution is interesting,... unless someone come up with another idea. I'll go deep on Andy's idea. Thanks & Regards. Dennis. Ohhh! Now I see .9375 + .0625 =1 = 16/16 = 15+1/16.... in general (a+(~a+1))/2^n and That is you "twist" explanation!. :))) in Argentina we say "ahora caigo" now I fell down! -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics