Search found 2 matches

by Sepreath
Fri Dec 17, 2010 3:10 pm
Forum: DS/DSi Development
Topic: temperature
Replies: 46
Views: 84426

Re: temperature

Some reading material for you:
Fixed point maths
by Sepreath
Thu Dec 16, 2010 4:56 pm
Forum: DS/DSi Development
Topic: temperature
Replies: 46
Views: 84426

Re: temperature

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...