如何求十进制数的10的补码

How to find 10's complement of decimal number

1056.074 的 10 的补码是多少?

请检查解决方案:

9999.999 - 1056.074 = 8943.925(1056.074 的 9 的补码)

现在 .074 或 8943 添加 1?

其实我在评论中漏掉了一点,所以我在这里补充一下。至少对以后的访客有帮助。

因为你已经正确计算出 1056.074 的 9 的补码,它等于 [(104) - (1*( 10-3))] - 1056.074 = 9999.999 - 1056.074 = 8943.925.

现在,由于您必须计算数字的 10 的补码,因此必须将 1 添加到 LSB 的小数(浮点)末尾,而不是数字本身,以便它保留了 10 的补码规则

所以,10的补码=9的补码+0.001(即只在LSB部分加1)=8943.926.

此处Base值为r=10,小数点左边的总位数为4(看不到小数点右边),所以10的补码为1056.074是 10(4的次方)-1056.074 =10000-1056.074 =8943.926(10的赞美)..希望这个答案对你有帮助..

首先你要找到1056.074的9的补码)
1056.074 的 9 的补码是 (9999.999-1056.074) = 8943.925

1056.074的10的补码是(9的补码+0.001) = 8943.925 + 0.001 =8943.926

DEC       9'S
'''       '''
0          9       To Find the 10's Complement of any decimal number, first
1          8       change the decimal into its 9's complement using this simple 
2          7       method of comparison.And at last add 0.001 to the solution.
3          6        eg:- 9's complement of 1056.074 is 8943.925
4          5             10's complement is 8943.925+0.001=*8943.926*
5          4
6          3
7          2
8          1

9          0