From: Gernot F. <ger...@ne...> - 2003-03-20 14:29:06
|
On Thu, 20 Mar 2003, you wrote: > Hi, > > > Sure. The simplest way is to calculate each Displaychar seperat: > > > > ch1=port%100+48; 123/100= 1 > > ch2=(port/10)%10+48; 123/10=12,12%10=2 > > ch3=port%10+48; 123%10=3 > ch2=((port%100)/10)+48; // Discard hundrets and get the tens This is also ok > ch3=((port%100)%10)+48; // Discard hundrets, tens and get the ones 123%10=3 and 23%10=3 Why the additional step? -- MFG Gernot |