Hi, Richards, Justin P (and others providing the same answer) wrote : >50% if that is the same as a half then right shifting the register will give >you 50% of what you had before. >Hope thats what you were after Well this is ofcource correct, however there is an issue with rounding. As this would truncate the result, i.e. 2->1, 3->1, 4->2 etc. If 'normal' rounding is to be taken into account i.e. 0.5 is rounded to 1 0.4 is rounded to 0, you also need to: check lowest bit of number, if '1' then add one to number *then* divide by two ( right shift by one ). nit picking yes, but could be an issue. /Tony -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads