当前位置:网站首页>449 original code, complement code, inverse code
449 original code, complement code, inverse code
2022-07-02 00:26:00 【liufeng2023】
Original code 、 Complement code 、 Inverse code
- The bottom layer of the computer uses binary numbers to store data , But when a computer stores a number, it does not directly store the binary number corresponding to the number , Instead, store the number The complement of the corresponding binary digit .
So next we need to know the original code 、 Inverse and complement .
1、 Number of machines
Number of machines :
- a number The storage form in computer is binary number , We call these binary numbers Number of machines ;
- Machine numbers are signed , Using machines in a computer The highest bit holds the sign bit ,0 It means a positive number ,1 A negative number .
The true number of machines :
- Because there are sign bits , So the formal value of machine number is not equal to its true value ;
- In terms of the number of machines 1000 0111 For example , Its real value is -7, And the formal value is 135.
- The true value of the signed machine number is called the true value of the machine number .
2、 Original code
The representation of the original code is the same as that of the true value of the machine number , That is to say, the symbol is represented by the first digit , The rest of the bits represent values , For example, the positive and negative of decimal 1, use 8 The original code of bit binary is as follows :
【+1】= primary :[ 0000 0001 ]
【-1】= primary :[ 1000 0001 ]
2、 Inverse code
The inverse code is expressed as :
- Positive numbers </
边栏推荐
- Kyushu cloud and Intel jointly released the smart campus private cloud framework, enabling new infrastructure for education
- GCC compilation
- 13 MySQL constraint
- What does open loop and closed loop mean?
- leetcode96不同的二叉搜索樹
- Ldr6035 smart Bluetooth audio can be charged and released (5.9.12.15.20v) fast charging and fast releasing device charging
- Relevant settings of wechat applet cache expiration time (recommended)
- Learn online case practice
- JS common library CDN recommendation
- 创业团队如何落地敏捷测试,提升质量效能?丨声网开发者创业讲堂 Vol.03
猜你喜欢
![[embedded system course design] a single key controls the LED light](/img/c9/076618208bbab0b95faa5a7e644a07.png)
[embedded system course design] a single key controls the LED light

2022拼多多详情/拼多多商品详情/拼多多sku详情

LDR6035智能蓝牙音响可对手机设备持续充放电方案

What is ThreadLocal memory leak and how to solve it

SQL Server Installation Guide

时间复杂度与空间复杂度

Heketi record

Gaussdb (for MySQL):partial result cache, which accelerates the operator by caching intermediate results

起床困难综合症(按位贪心)

基于全志H3的QT5.12.9移植教程
随机推荐
[cascade classifier training parameters] training Haar cascades
Pytorch learning record
Guide d'installation du serveur SQL
Node -- add compressed file
What is the purpose of ERP project implementation plan?
Talents come from afar, and Wangcheng district has consolidated the intellectual base of "strengthening the provincial capital"
Accelerator systems initiative is an independent non-profit organization
UVM tutorial
【CTF】bjdctf_2020_babystack2
What is ThreadLocal memory leak and how to solve it
Operate database transactions with jpatractionmanager
【QT】对于Qt MSVC 2017无法编译的问题解决
LeetCode 0241. Design priority for arithmetic expressions - DFS
基于全志H3的QT5.12.9移植教程
js 公共库 cdn 推荐
B tree and b+tree of MySQL
牛客-练习赛101-推理小丑
Linux CentOS7安装Oracle11g的超完美新手教程
使用htaccess文件禁止目录里的脚本执行权限
GCC compilation