Greetings all ! I am trying to come up with a routine to convert a byte value to a percentage. That is, for an input value of zero, the output would be zero. For an input of 255, the output would be 100. The obvious solution is: Percentage = Trunc(Decimal / 2.55). Since I don't know of an easy way to divide by a fractional number, I came up with this alternative: 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 there is an easier way to do this, would someone please enlighten me? I have been thinking this over for quite some time, so maybe I "can't see the forest for the trees." Thanks in advance! Kelly Kohls Amateur Radio Callsign: N5TLE Home E-Mail Address: kkohls@juno.com or n5tle@qsl.net Homepage URL: http://www.qsl.net/n5tle ___________________________________________________________________ You don't need to buy Internet access to use free Internet e-mail. Get completely free e-mail from Juno at http://www.juno.com/getjuno.html or call Juno at (800) 654-JUNO [654-5866]