0
$\begingroup$

how do you calculate the sum of 2.6125 * 10^1 and 4.150390625 * 10-1 by hand, assuming A and B are stored in the 16-bit half precision. i cant figure out how to do this by hand with out losing most of the precision or getting it just plain wrong any help would be appreciated.

$\endgroup$
2
  • 1
    $\begingroup$ Could you start by representing this in binary scientific notation and showing sign, exponent and mantissa? To add exponents must be the same - have you tried it? There will be not normalized exponent - do you know what it means? Then you shift radix point of mantissa - can you do it and adjust exponent? Then you add mantissas, add signs, normalize and you have result. In meanwhile there might be truncation needed. One of the numbers you gave seem to be bigger than half precission... $\endgroup$
    – Evil
    Mar 6, 2016 at 1:07
  • $\begingroup$ Have you tried reading this? $\endgroup$
    – Evil
    Mar 6, 2016 at 1:20

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.