Convert each value to the half-precision format as follows:
Consider as , The exponent is zero, so simply convert the number to binary.
Consider as . The exponent is 4, so place the decimal point four digits right as ., Now convert to binary.
The floating-point is adjusted to the power of 2.
Consider as . The exponent is 4, so place the decimal point four digits right as ., Now convert to binary.
The floating-point is adjusted to the power of 2.
The fraction part is calculated as follows:
-------------------------------------------------------
-----------------------------------------------------
Normalize the above value and add 1 to the exponent.
Guard bit=1,
Round bit=1,
Sticky bit=1
Then,
Now, Calculate :
-----------------------------------------------------
-----------------------------------------------------
Normalize the above value and add 1 to the exponent
Guard bit=1,
Round bit=1,
Sticky bit=1
Finally, Add and
Normalize the above value, then the floating-point value of
is
The decimal value is 32