View Single Post
Old 22nd February 2008, 19:07   #19  |  Link
squid_80
Registered User
 
Join Date: Dec 2004
Location: Melbourne, AU
Posts: 1,963
Divide by 256, with rounding:
(x+128)>>8

No good?

Last edited by squid_80; 22nd February 2008 at 19:12. Reason: oops, that's just plain rounding. Rounding upwards would be +251.
squid_80 is offline   Reply With Quote