Quote (Tamagochi @ Sep 12 2015 04:24pm)
0 01111 0000000000 = 1
could you explain this to me?
short answer: 2^ (15 - 15) = 2^0 = 1
longer answer, look at the chart:

sign is 0, so it's positive.
look at the exponent now. exponent is 01111 = 15
look at the fractional component: 0000000000 = 0
so building the number:
2^(exponent - (2^(exponent bits - 1) - 1)) + fractional component
2^(exponent - (2^(5-1)-1)) + fractional component
2^(exponent - (2^4-1)) + fractional component
2^(exponent - 15) + fractional component
2^(15 - 15) + 0
= 2^0 + 0
= 1 + 0
= 1
it's easier to find tutorials for 32 bit floating points. 16 bit work the same way, just fewer bits
This post was edited by carteblanche on Sep 12 2015 02:59pm