On Mon, 7 Dec 1998 22:20:02 -0800, you wrote: >Kelly J Kohls wrote: >> Percentage = (Decimal * 100) / 255. Now I am faced with having to use >> sixteen bit operations for a problem that has eight bit values for both >> input and output. > >If you need speed and are not too worried about using up code space, >you could use a lookup table since you have only(!) 256 possible values. And remember that as 1% is more than two counts, you only need to lookup the top 7 bits, requiring at most 128 entries in the table. Fewer if accuracy isn't critical - 64 entries would still be within 2%.