> I want to calculate: > > =A0 =A0(ticks * ) / 1000 > > to return the number of milliseconds elapsed based on a > count maintained by a timer ISR. =A0microsecondsPerTick > is a nice constant number like 1024 or 2048, so the > multiplication becomes a shift So, what you need is just to divide by 1000 after the shifting. Why not convert it to decimal, discard last 3 digits, and then convert it back to binary? > The code is not particularly time critical -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist