当前位置:网站首页>[Verilog basics] octal and hexadecimal representation of decimal negative numbers
[Verilog basics] octal and hexadecimal representation of decimal negative numbers
2022-06-30 16:40:00 【ReCclay】
subject : take -617 Convert to octal and hexadecimal numbers ( Complement code )
Make a mistake :(-617)D=(-1151)O=(-269)H
Cause analysis : If it's a positive number , The above idea is correct , Due to the positive and negative code 、 Inverse code 、 The difference in complement conversion , Therefore, it is wrong to solve negative numbers according to the solution idea of positive numbers .
The right way yes : First of all, will -617 Express with complement , Then convert it to octal and hexadecimal ( Complement code ) that will do .
notes : Binary complement to use 16 position .
right key :(-617)D=(176627)O=(fd97)H
Negative decimal conversion to octal or hexadecimal methods such as (-12)10=( )8=( )16
First step : Convert to binary
1000 0000 0000 1100
The second step : Complement code , Take the reverse and add one
1111 1111 1111 0100
The third step : The conversion to octal is Three in one :(177764)8
Conversion to Hex is Four in one combination :(fff4)16
C Language program
边栏推荐
- 有意思的鼠标指针交互探究
- [BJDCTF2020]The mystery of ip|[CISCN2019 华东南赛区]Web11|SSTI注入
- JS ES5也可以创建常量?
- POJ Project Summer
- 今晚19:00知识赋能第2期直播丨OpenHarmony智能家居项目之控制面板界面设计
- Finally understand science! 200 pictures to appreciate the peak of human wisdom
- [Verilog quick start of Niuke online question series] ~ bit splitting and operation
- Which direction should college students choose to find jobs after graduation?
- POJ Project Summer
- The image variables in the Halcon variable window are not displayed, and it is useless to restart the software and the computer
猜你喜欢

How cloudxr promotes the future development of XR

猎头5万挖我去VC

Policy Center > Google Play‘s Target API Level Policy
![Warning: [antd: Menu] `children` will be removed in next major version. Please use `items` instead.](/img/c1/99ad29789a669c4498fb93ce1fb009.png)
Warning: [antd: Menu] `children` will be removed in next major version. Please use `items` instead.

I 用c I 实现“栈”

Headhunter 50, 000, I'll go to VC

电子烟强制性国家标准GB 41700-2022发布 2022年10月1日起实施

MC Instruction Decoder

备战数学建模35-时间序列预测模型

居家办公浅谈远程协助快速提效心得 | 社区征文
随机推荐
Unsupported major. minor version 52.0
AVIC UAV technology innovation board is listed: the fist product with a market value of 38.5 billion is pterodactyl UAV
RT thread heap size setting
KDD 2022 | how far are we from the general pre training recommendation model? Universal sequence representation learning model unisrec for recommender system
Bidding announcement: remote disaster recovery project of Shenzhen Finance Bureau database
Mysql代理中间件Atlas安装和配置
CloudXR如何推动XR的未来发展
I 用c I 实现“栈”
MC Instruction Decoder
'<', Hexadecimal value 0x3c, is an invalid problem solving
How to get the preferential activities for stock account opening? Is online account opening safe?
容联云首发基于统信UOS的Rphone,打造国产化联络中心新生态
“低代码”在企业数字化转型中扮演着什么角色?
备战数学建模36-时间序列模型2
Unsupported major.minor version 52.0
思源笔记:能否提供页面内折叠所有标题的快捷键?
flinkcdc如果监控的数据库为mongo就必须是集群版吗
CVPR 2022 - Tesla AI proposed: generalized pedestrian re recognition based on graph sampling depth metric learning
牛客网:最小花费爬楼梯
猎头5万挖我去VC