当前位置:网站首页>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 </
边栏推荐
- Selectively inhibiting learning bias for active sampling
- [cmake] cmake configuration in QT Creator
- 【QT】对于Qt MSVC 2017无法编译的问题解决
- Which app is better and more secure for stock mobile account opening
- 使用多线程Callable查询oracle数据库
- Regular expression collection
- PHP reads ini or env type configuration
- Barbie q! How to analyze the new game app?
- [Qt] résoudre le problème que Qt msvc 2017 ne peut pas Compiler
- 微信小程序缓存过期时间的相关设置(推荐)
猜你喜欢
What is ThreadLocal memory leak and how to solve it
[QT] solve the problem that QT MSVC 2017 cannot compile
Dongge cashes in and the boss retires?
Pytorch learning record
关联性——组内相关系数
Difficult to get up syndrome (bit by bit greed)
【QT】對於Qt MSVC 2017無法編譯的問題解决
Guide d'installation du serveur SQL
智能运维实战:银行业务流程及单笔交易追踪
Linux CentOS7安装Oracle11g的超完美新手教程
随机推荐
在证券账户上买基金安全吗?哪里可以买基金
【QT】Qt 使用MSVC2017找不到编译器的解决办法
【QT】对于Qt MSVC 2017无法编译的问题解决
Node -- egg implements the interface of uploading files
一个实习生的CnosDB之旅
B tree and b+tree of MySQL
北京炒股开户选择手机办理安全吗?
Learn online case practice
[QT] test whether QT can connect to the database
Niuke - Practice 101 - reasoning clown
GCC compilation
Soft exam information system project manager_ Compiled abbreviations of the top ten management processes to help memory recitation - -- software test advanced information system project manager 054
Node - generate wechat permission verification configuration
Mysql database driver (JDBC Driver) jar package download
Kyushu cloud and Intel jointly released the smart campus private cloud framework, enabling new infrastructure for education
Asp . Text of automatic reply to NETCORE wechat subscription number
【CTF】bjdctf_2020_babystack2
实例讲解将Graph Explorer搬上JupyterLab
Flow control statement of SQL data analysis [if, case... When detailed]
From 20s to 500ms, I used these three methods