> > I=B4m using pic 16F series, I did not need a remainder > and i=B4m using a 16bit number in format signed. In that case the routines that Michael pointed you to are a good start. Note that these do not use the sign, so you'll have to remove the sign, store it, and reapply it after the calculation, which shouldn't be too difficult. Greetings, Maarten Hofman. -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist