backwaters
asked on
16 bit floating point binary
i have to write a c program to perform some arithmetic operations on 16 bit floating point binary numbers.
the format is as follows:
SBBBBBMMMMMMMMMM
S= sign bit
B= biased exponent (bias = 16)
M= normalized matissa
i have to add two of them first and then substract. i dont even understand what is B and M.
please help me.
thanks a lot,
tony.
the format is as follows:
SBBBBBMMMMMMMMMM
S= sign bit
B= biased exponent (bias = 16)
M= normalized matissa
i have to add two of them first and then substract. i dont even understand what is B and M.
please help me.
thanks a lot,
tony.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
As this appears to be homework, this is all I can do so far for you.
Good Luck!
Good Luck!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Kdo,
Good explanation!
Stefan
Good explanation!
Stefan
Hi Stefan,
I was interrupted so the post took longer to assemble than normal. When I started typing there were no other replies....
:)
I was interrupted so the post took longer to assemble than normal. When I started typing there were no other replies....
:)
> BBBBB
Here the biasing is the very same as in the 32 bit IEEEs (look for the "- 127 = "). Basically, the leftmost bit is the sign of your exponent.
Stefan