> swaping bytes will resolve only the conversion of mantissa but what is
> the solution for the exponent?
>
Go ahead and give it a try, this is done all the time inside LV. The
deal is that there are two ordering systems. One stores ABCD as ABCD
and the other as DCBA. Swapping words will get you BACD, and swap bytes
will give you ABCD. It doesn't matter which order you do the swaps in,
and all you really need know is whether the data is encoded the same as
yours, if not, do the swaps.
As for the confusion over IEEE 754, as the other response pointed out,
IEEE is concerned with bit ordering within the 32 bits, it doesn't
concern itself with the ordering of bytes within a 32 bit long word.
If you don't want to write this youruself
, I'm pretty sure you can find
tools for doing this on the web.
Greg McKaskle