Some reading material for you:
Fixed point maths
Search found 2 matches
Search found 2 matches • Page 1 of 1
lazyprogrammer fixed point maths: [all of this assumed you are using unsigned ints] your number 112842 is represented using 20.12 fixed point. On the DS int = 32 bits. Notice 20+12=32! What is means is that the first 20 bits of 112842 represent the whole part of the temperature number and the last 1...