当前位置:网站首页>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 </
边栏推荐
- GaussDB(for MySQL) :Partial Result Cache,通过缓存中间结果对算子进行加速
- Relevant settings of wechat applet cache expiration time (recommended)
- EMC circuit protection device for surge and impulse current protection
- 2022 pinduoduo details / pinduoduo product details / pinduoduo SKU details
- [embedded system course design] a single key controls the LED light
- SQL数据分析之流程控制语句【if,case...when详解】
- 数据分析方法论与前人经验总结【笔记干货】
- I would like to ask, which securities is better for securities account opening? Is it safe to open a mobile account?
- Iota in golang
- Niuke - Practice 101 - reasoning clown
猜你喜欢

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

2023 Lexus ES products have been announced, which makes great progress this time

起床困难综合症(按位贪心)
![[QT] solve the problem that QT MSVC 2017 cannot compile](/img/35/e458fd437a0bed4bace2d6d65c9ec8.png)
[QT] solve the problem that QT MSVC 2017 cannot compile

【QT】测试Qt是否能连接上数据库

Digital transformation has a long way to go, so how to take the key first step

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

2023款雷克萨斯ES产品公布,这回进步很有感

Mysql database driver (JDBC Driver) jar package download

Leetcode medium question sharing (5)
随机推荐
Node——添加压缩文件
Comprehensive usage and case questions of sub query of SQL data analysis [patient sorting]
What does open loop and closed loop mean?
Graduation season | Huawei experts teach the interview secret: how to get a high paying offer from a large factory?
[cmake] cmake configuration in QT Creator
USB-IF协会与各种接口的由来
Key points of security agreement
SQL Server Installation Guide
Ldr6035 smart Bluetooth audio can continuously charge and discharge mobile devices
Record the accidental success and failure of uploading large files
[opencv450] hog+svm and hog+cascade for pedestrian detection
Leetcode medium question sharing (5)
The difference between timer and scheduledthreadpoolexecutor
【QT】Qt 使用MSVC2017找不到编译器的解决办法
Jielizhi, production line assembly link [chapter]
股票开户哪个证券公司比较安全
Node——Egg 实现上传文件接口
关联性——组内相关系数
SQL Server 安装指南
Use es to realize epidemic map or take out order function (including code and data)