【问题标题】:What is the decimal value of the largest positive integer we can represent in 7 bits?我们可以用 7 位表示的最大正整数的十进制值是多少?
【发布时间】:2014-11-02 09:09:55
【问题描述】:

我们能用 7 位表示的最大正整数的十进制值是多少?

我的想法是 1111111 = 127。谁能证实我的怀疑?

【问题讨论】:

标签: binary decimal converter


【解决方案1】:

7 位中最大的无符号整数是 2^7-1= 127。但有符号整数是 2^6-1=63。

【讨论】:

    【解决方案2】:

    在二进制补码表示中,正数简单表示为自身,负数用其绝对值的二进制补码表示;1右表提供了N=8的例子。一般来说,取反(反转符号)是通过取二进制补码来执行的。该系统是在计算机上表示有符号整数的最常用方法。 [2]

    for more information go to this link

    【讨论】:

      猜你喜欢
      • 2019-02-05
      • 2018-07-04
      • 2023-03-19
      • 2018-12-07
      • 2015-03-22
      • 2018-10-23
      • 1970-01-01
      • 2018-02-25
      • 2018-02-02
      相关资源
      最近更新 更多