Hi, I had similar problem, but I needed to scale 0..255 to 0..999 Here is a solution: RESULT = ((BYTE * 251) >> 6) MIN 999 In words: multiple the byte by 251, shift the result right 6 times, and if the result exceeded 999, take the latter. It works fine, and it is pretty fast! Imre