On Wed, 6 Aug 1997 17:09:04 -0700 WF AUTOMA=?iso-8859-1?Q?=C7=C3O ?= writes: >You must to sucessive divisions by 10 and hold the remainder of each >division >in a temporary memory, until the quocient is 0. If displaying to an LCD module based the HD44780, you can set the controller to autodecrement (move the cursor right to left), then output the remainders (as ASCII) directly to the LCD as they are calculated. The digits of the number will appear on the screen in correct order. This makes the successive division method rather practical (certainly RAM-efficient, though it may be necessary to store a copy of the number since the division process will destroy it). An N/8 bit division is easy to expand to a large number of bits (one more shift instruction and 8 more loops for each byte). If the input number is only 8 or 16 bits some of the other methods discussed previously may be better.