Brian Clewer wrote: > > Um, subtract 20? > > :) but, lets say you only have the long int (b 10000000000 it > could be a different number) how would you test if there is a 2 in > that decimal place? In order to subtract 20, you need to know if > the 20 is there in the first place. Oh, I see. Sorry, didn't realize that that was the problem. Convert it from a long int to a string before the digit-change, then convert it back from a string to a long int after. You've already done the int-to-string conversion anyway, I think, in order to display the number. -Andy === Andrew Warren -- aiw@cypress.com === Principal Design Engineer === Cypress Semiconductor Corporation === === Opinions expressed above do not === necessarily represent those of === Cypress Semiconductor Corporation -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads