On 20/12/2010 14:24, John Coppens wrote: > On Mon, 20 Dec 2010 11:07:50 +0000 > Oli Glaser wrote: > >> Alan, can you explain how you arrive at the above? >> I was thinking that if left justified, then 0x3b00 =3D (0011101100)00000= 0 >> =3D 0011101100 =3D 236 > > From the world of DSP, it is common to interpret a result from an A/D > as a floating point (fractional value), which is probably the motive > for left justification in the first place. This way, all results are > > 0<=3D result< 1 > > 10000000 00000000 =3D 0.5 > 01000000 00000000 =3D 0.25 etc. > > 0011101100000000 =3D 0.23 > > John I understand how one arrives at the fractional bit 236/1024 etc, no=20 issue there - I just wanted to know why he says your interpretation=20 (0.23 or 236, however you want to read it) was incorrect, and how he=20 arrived at this conclusion. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .