Please quote enough context so that people can follow along.
sorry my mistake this is not a latitude this is altitude...
with lat and long i didnt have any problem they were stored in integer
format....
problem is altitude.
We would need a few more examples, and an indication of units
might help. Are there minimums and maximums? Is the maximum
about 333? Or about 262? Any hints on the resolution? Is it
pausible that "nautical" measurements are involved in storage but
not in the display (or the other way around)?
If you take 0xa6d4, swap the bytes around to get 0xd4a6, and
subtract off 0x8000, the result is 21670 which is 99.769797
times the output value you are expecting. A conversion
of units with a value very close to 1.00 could account for the
residue.
But one sample isn't enough to go on. (And this isn't really the
right newsgroup, since the matter is not C specific.)