|NO.Z.00026|——————————|BigDataEnd|——|Java&变量数据类型.V10|——|Java.v10|数据类型.v05|负二进制转换为十进制|
一、负二进制转换为十进制
### --- 负二进制转换为十进制
~~~ ——>先减1再按位取反,合并为十进制整数后添加负号
二、负二进制转换为十进制
### --- 负二进制 1101 0011转换为十进制的结果是:
~~~ => 先减掉1: 1101 0010 = 1101 0011 -1
~~~ => 按位取反: 0010 1101
~~~ => 转为十进制: 32+8+4+1 = 45
~~~ => 添加负号: -45
Walter Savage Landor:strove with none,for none was worth my strife.Nature I loved and, next to Nature, Art:I warm'd both hands before the fire of life.It sinks, and I am ready to depart
——W.S.Landor