32 bit - 8 bit floating point binary to decimal -


this question similar question asked here: floating point conversion 8-bit floating point numbers. marked answer missing few of symbols mean , of math completed in between lines. if could, please walk me through process converting following 8-bit binary floating point it's decimal counterpart ieee 754-2008.

where formula derived , variables in formula, 2**:

bias = emax = 2**(k - p - 1) - 1 

please show me steps math convert 0010 0110 it's decimal representation.

i found webpage detailed explanation on how make conversion:

http://sandbox.mc.edu/~bennet/cs110/flt/ftod.html

the following copy-paste of 1 8-bit example breaks binary string 0 010 0110:

convert 8-bit floating point number 26 (in hex) decimal. convert , separate: 2616 = 00100110 2 exponent: 0102 = 210; 2 − 3 = -1. denormalize: 1.0112 × 2-1 = 0.1011. convert: exponents   20      2-1     2-2     2-3     2-4 place values    1       0.5     0.25        0.125       0.0625 bits    0   .   1       0       1       1 value           0.5         +   0.125   +   0.0625  =   0.6875 sign: positive result: 26 0.6875. 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -