Link to home
Start Free TrialLog in
Avatar of backwaters
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.
SOLUTION
Avatar of stefan73
stefan73
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
backwaters,
> 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
As this appears to be homework, this is all I can do so far for you.

Good Luck!
ASKER CERTIFIED SOLUTION
Avatar of Kent Olsen
Kent Olsen
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Kdo,
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....

:)