I"m trying to take a 16 bit number convert it to BCD so I can display it in decimal on and LCD. Are there any C function to do this? I can't seem to find any online.
What processor are you using? I have some routines but the best approach depends on which processor you are using, and whether you need the code to be quick or small. Also all of mine are in assembly language.