For a normal half-precision floating-point number, write the stored fields as sign , biased exponent and ten-bit fraction . The value is for . The leading one is implicit: the ten stored fraction bits give eleven significant binary digits including that one. The normalized binary representations and stored fields are
ValueNormalized binary representationSign, biased exponent, fraction
0 01110 0000000000
0 01110 0100000000
1 01100 1000000000
0 10010 1111000000
Thus the four 16-bit words are
Every conversion is exact: all four numbers have terminating binary representations within the available precision.

Articles by others on the same topic (0)

There are currently no matching articles.