当前位置:网站首页>[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
边栏推荐
- Symantec electronic sprint technology innovation board: Tan Jian, the actual controller, is an American who plans to raise 620million yuan
- 【Verilog基础】关于Clock信号的一些概念总结(clock setup/hold、clock tree、clock skew、clock latency、clock transition..)
- Arcmap操作系列:80平面转经纬度84
- 2022 Blue Bridge Cup group B - expense reimbursement - (linear dp| status DP)
- KDD 2022 | how far are we from the general pre training recommendation model? Universal sequence representation learning model unisrec for recommender system
- Halcon knowledge: matrix topic [02]
- MySQL开放远程连接权限的两种方法
- '<', Hexadecimal value 0x3c, is an invalid problem solving
- Li Zexiang, a legendary Chinese professor, is making unicorns in batches
- What are the reasons for the errors reported by the Flink SQL CDC synchronization sqlserver
猜你喜欢

什么是XR扩展现实,XR云串流平台有哪些
MySQL开放远程连接权限的两种方法

Policy Center > Deceptive Behavior

2022新消费半年盘点:行业遇冷,但这九个赛道依然吸金

JS ES5也可以创建常量?

Open source STM32 USB-CAN project
![Halcon knowledge: regional topics [07]](/img/18/680997127047fb24b0ee4f19d8f2c5.png)
Halcon knowledge: regional topics [07]

边缘计算平台如何助力物联网发展

halcon知识:区域专题【07】
![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.
随机推荐
2022 Blue Bridge Cup group B - expense reimbursement - (linear dp| status DP)
Is your light on? Before you start to solve a problem, you need to know what the "real problem" is
“低代码”在企业数字化转型中扮演着什么角色?
Carry two load balancing notes and find them in the future
Dart: string replace related methods to solve replacement characters
Mysql代理中间件Atlas安装和配置
go-zero微服务实战系列(八、如何处理每秒上万次的下单请求)
如何得到股票开户的优惠活动?在线开户安全么?
备战数学建模35-时间序列预测模型
超 Nice 的表格响应式布局小技巧
观测云与 TDengine 达成深度合作,优化企业上云体验
Interesting research on mouse pointer interaction
Symantec electronic sprint technology innovation board: Tan Jian, the actual controller, is an American who plans to raise 620million yuan
BC1.2 PD协议
备战数学建模34-BP神经网络预测2
Yunhe enmo won the bid for Oracle maintenance project of Tianjin Binhai rural commercial bank in 2022-2023
Hologres共享集群助力淘宝订阅极致精细化运营
Additional: (not written yet, don't look at ~ ~ ~) corsfilter filter;
云化XR,如何助力产业升级
备战数学建模36-时间序列模型2