I have a small question about Half-precision IEEE-754.
1) I have the following exercise: 13,7625 shall be written in 16 bit (half precision)
so I started to convert the number from DEC to Binary and I got this 13,7625 = 1101.11000011002
all in all, it would be 1.1011100001100 * 2³.
- sign bit is 0 because the number is positive.
- Mantissa shall have ten bits = 101 110 0001
- Exponent have five bits = bias(15) + 3 = 18 thus the exponent is 10010 and here is the damn problem.
My professor gave us the solution and as I know I did the mantissa quite right and the binary conversion as well for but for the Exponent, he states that it's 19=10011 but I don't get it. can the bais be 16? according to Wikipedia its - 15 for the half-precision. - 127 for the single-precision. - 1032 for the double-precision.
can you pls point out what did I do wrong pls?.
2)one other question what would be the exponent bias if we have the following situation: 1 sign bit + 4 Mantissa bits + 3 exponent bits. and why?
thanks.