Hello All! Kelvins good idea in general - it is always positive ;-) 0.01*K fits in 16 bits and gives reasonable range. but may be something like K<<6 could be a option? (to allow use of shifts instead of muls/divs). It would be much more easier to extract int part. just my 2 eurocents.