We help IT Professionals succeed at work.

16 bit floating point binary

backwaters
backwaters asked
on
778 Views
Last Modified: 2010-04-15
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.
Comment
Watch Question

Top Expert 2004
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Top Expert 2004

Commented:
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
Top Expert 2004

Commented:
As this appears to be homework, this is all I can do so far for you.

Good Luck!
Data Warehouse / Database Architect
CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Top Expert 2004

Commented:
Kdo,
Good explanation!

Stefan
Kent OlsenData Warehouse / Database Architect
CERTIFIED EXPERT

Commented:
Hi Stefan,

I was interrupted so the post took longer to assemble than normal.  When I started typing there were no other replies....

:)
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.