1001 1000 0111 0110B
(1)当看作是有符号数时,默认为负数的补码,
原码:11110 0111 1000 1010->-(6*16^3+7*16^2+8*16+10)
转换后,为-26506
(2)看作时无符号数,就是直接为6 * 16 ^0+7*16 ^ 2+8 * 16 ^3+9 * 16 ^3=39030
将数值9876H分别看作是有符号数和无符号数,转换为相应的十进制数
猜你喜欢
转载自blog.csdn.net/weixin_44001521/article/details/104411192
今日推荐
周排行