Home > Back-end >  Floating point Numbers subtraction
Floating point Numbers subtraction

Time:01-25

A decimal number X= - Y=5/256 59/1024 , according to the floating point arithmetic rules to compute x-y machine complement, results in binary, said floating-point format is as follows: order operator take two, take three exponent, several operators take two, take nine tail (mantissa 0 1)

Me:

X=11101; 11.101 000 000

Y=11100; 00.111 011 000

[X]=11011; 11.011 000 000

[Y]=11100; 00.111 011, 000=11011; 00.011 101 100

Darned [X] - [Y]=11.011 000 + 11. 000, 100, 010, 100

100
=10.111 010
Right rules: 11.011 101 010

X - Y=11.011; 11.100 010 110 is obviously wrong

Where is big I wrong

CodePudding user response:

Find the error
  • Related