I have a word var that represents a 4 or5 digit decimal number... (00000 or 01234 example)
I need to convert the var word to a string of 4 or 5 bytes that repsent the digits of the number.... example Dec Word var = 12345... result would be byte(0) = $35, Byte(1) = $ 34, Byte(2) = $33, Byte(3) = $ 32, Byte(4) = $31.
I cannot pass through a serial port to do it so I have to do it another way.
I have seen this before but cannot locate in a search.
Tcbcats