Hi All, I have been looking at the Bin2decg routine for converting the 10bit ADC output to BCD digits. http://www.piclist.com/techref/microchip/math/radix/b2bu-10b4d-eag.htm In the code how does the author updates the digits d2, d3 and d4? Regards, -- Chetan Bhargava Web: http://www.bhargavaz.net Blog: http://microz.blogspot.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist