0
$\begingroup$

I'm trying to convert a 16 bit floating point binary into a decimal number.

My binary number is 0010000101111100

Separation: 0|01000|0101111100

Sign: 0

Exponent: 01000 is 8 in Decimal

Mantissa:

Looking for an explanation on how I can use the Exponent and Mantissa to work backwards and find my decimal number. Thanks.

$\endgroup$
  • $\begingroup$ I found a post about this in stack overflow, maybe that can help: stackoverflow.com/questions/2404675/… $\endgroup$ – mitchbus Jan 25 '17 at 18:58
  • $\begingroup$ There are many variations on floating-point formats used in computers (which appears to be what your question is about). You should have received a precise definition of your particular floating-point format, which you should specify here. Presumably you have also seen examples of the evaluation of floating-point numbers from which you can at least make a reasonable guess how to answer this question. Show us. Even if you make a mistake, your work will be the best clue as to what kind of answer you need. $\endgroup$ – David K Jan 25 '17 at 18:59
  • $\begingroup$ i.imgur.com/OQsgrsl.png This is what I've managed so far but I presume it's wrong. I've also used this link to try and help me understand the method: math.stackexchange.com/questions/1128204/… $\endgroup$ – Aura Jan 25 '17 at 19:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.