当前位置:网站首页>Original code, inverse code, complement code
Original code, inverse code, complement code
2022-07-19 02:00:00 【Monastic -0323】
Preface
For positive numbers , Original code , Inverse code , The binary storage form of complement is the same , This article will not be repeated .
For negative numbers , Because there is only an addition calculator in the computer circuit , In order to add negative parameters , Inverse code , Complement came into being .
After unification , Integer type data is stored in binary form in the computer in the form of complement .
1. Original code
highest ( Leftmost ) The sign bit .0 Being positive ,1 Negative .
2. Inverse code
The sign bits remain the same , The rest of the bits are reversed .
3. Complement code
Add one to the last bit of the inverse code ;( The final storage form of computer )
Compare with the following table , You can quickly understand the original code , Inverse code , Complement related information .
| +1 | -1 | +0 | -0 | |
|---|---|---|---|---|
| Original code | 0000 0001 | 1000 0001 | 0000 0000 | 1000 0000 |
| Inverse code | 0000 0001 | 1111 1110 | 0000 0000 | 1111 1111 |
| Complement code | 0000 0001 | 1111 1111 | 0000 0000 | 0000 0000 |
边栏推荐
猜你喜欢

Leveraging Semi-Supervised Learning for Fairness using Neural Networks

【文献阅读】Multi-state MRAM cells for hardware neuromorphic computing

Owl Eyes: Spotting UI Display Issues via Visual Understanding

Handling conditional discrimination

Fair Attribute Classification through Latent Space De-biasing

边缘检测方法 -- 一阶边缘检测

MXNet网络模型(五)条件GAN神经网络

性能强悍的图表组件库 ScottPlot

Handling Conditional Discrimination(可解释歧视和确切的歧视)

【翻译】Transformers in Computer Vision
随机推荐
PCA主成分分析(降维)过程推导
Xcode11添加引导页(升级后Launch Images Source选项不见了)
[literature reading] isl: an integer set library for the polygonal model
[literature reading] tenet: a framework for modeling tensor dataflow based on relational centric notation
Fairness in Semi-supervised Learning: Unlabeled Data Help to Reduce Discrimination
L1,L2范数
3章 性能平台GodEye源码分析-内存模块
Determine whether two arrays are exactly equal
Hands on deep learning -- from full connection layer to convolution layer
关于1000BASE-T1 1000BASE-TX和100BASE-T1
[literature reading] counting integer points in parametric polymers using barvinok's rational functions
数组定义格式
使用异或交换两个变量是低效的
【Go语言】代码覆盖测试(gcov)
利用因果线性模型监测不公平A Causal Linear Model to Quantify Edge Unfairness for Unfair Edge Prioritization
js 树状图数组批量循环操作
6章 性能平台GodEye源码分析-自定义拓展模块
[literature reading] multi state MRAM cells for hardware neural computing
Learning Transferable Visual Models From Natural Language Supervision
禁止自作聪明的Safari打开网页时自动播放