Well, temperatures usually change slowly Presumably your concern is the CPU time spent doing the read.ernitron wrote:...as performance is concern I think the bitwise operation is faster...
If so, bear in mind that floating point operations imply memory allocation. Also that multiplying by 0.0625 is the same as a sign-extended 4 bit right shift - albeit with the latter discarding fractional degrees. The best solution is application dependent; but for most practical purposes I'd probably stick with one of the floating point approaches.