|
-
April 16th, 2003, 01:44 AM
#1
Create floating point number from seperate bytes?
hello,
Ive run into a problem that I think there may be a good solution for.
My program is in C.
I have a single precision floating point value given to me in the following format:
3 seperate bytes
-------------------------------------
SFFFFFFF FFFFFFFF EEEEEEEE
thats 1 Sign bit, 15 Mantissa, 8 exponent.
(a different order than the IEEE standard)
Right now I just have the 3 bytes as unsigned char variables to hold these values. Now the question is, Is there an easy way to turn these 3 seperate bytes back into a floating point number?
I can manually shift them around but that seems way too hard.
Thanks in advance : )
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|