当前位置:网站首页>负数的十六进制表示
负数的十六进制表示
2022-07-28 08:32:00 【金士顿】
版权声明:本文为CSDN博主「林小风」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/u012889884/article/details/44419069
-2 用十六进制表示,如果数据类型是字节,(signed) char 那么表示为 0xFE ,注意如果是unsigned char 类型 0xFE 表示254(signed char -128~127,unsigned char 0~255)
如果是int类型(4字节),那么表示为 0xFFFFFFFE.
负数用十六进制表示,首先应该将其表示成二进制形式,然后变反码,再变补码。
2 ——> 原码 0000 0010 ——> 反码 1111 1101 (原码按位反转) ——> 补码 1111 1110(反码+1)
补码变为十六进制表示是 0xFE
边栏推荐
- Bluetooth technology | it is reported that apple, meta and other manufacturers will promote new wearable devices, and Bluetooth will help the development of intelligent wearable devices
- The chess robot pinched the finger of a 7-year-old boy, and the pot of a software testing engineer? I smiled.
- Huid learning 7: Hudi and Flink integration
- Bluetooth technology | the total scale of charging piles in Beijing will reach 700000 in 2025. Talk about the indissoluble relationship between Bluetooth and charging piles
- Dapp安全总结与典型安全事件分析
- F - Jealous Two-二维逆序对
- NPM and yarn use (official website, installation, command line, uploading your own package, detailed explanation of package version number, updating and uninstalling package, viewing all versions, equ
- Principle of line of sight tracking and explanation of the paper
- Openshift 4 - use verticalpodautoscaler to optimize application resource request and limit
- OpenShift 4 之AMQ Streams(1) - 多个Consumer从Partition接收数据
猜你喜欢

JSON 文件存储

Bluetooth technology | the total scale of charging piles in Beijing will reach 700000 in 2025. Talk about the indissoluble relationship between Bluetooth and charging piles

2022高压电工考试模拟100题及模拟考试

CSV文件存储

修改虚拟机IP地址

Dapp安全总结与典型安全事件分析

DAPP safety summary and typical safety incident analysis

IP protocol of network layer

Get started quickly with flask (I) understand the framework flask, project structure and development environment

CSV file storage
随机推荐
(IROS 2022) 基于事件相机的单目视觉惯性里程计 / Event-based Monocular Visual Inertial Odometry
VS2015使用dumpbin 查看库的导出函数符号
MySQL 8.0.30 GA
信息学奥赛一本通 1617:转圈游戏 | 1875:【13NOIP提高组】转圈游戏 | 洛谷 P1965 [NOIP2013 提高组] 转圈游戏
一款入门神器TensorFlowPlayground
VR全景拍摄,助力民宿多元化宣传
Kubernetes data persistence scheme
What content does the new version of network security level protection evaluation report template contain? Where can I find it?
7 C控制语句:分支和跳转
19c SYSAUX表空间SQLOBJ$PLAN表过大,如何清理
IntelliJ IDEA 关联数据库
Detailed explanation of the basic use of express, body parse and express art template modules (use, route, path matching, response method, managed static files, official website)
Setting of parameter configuration tool for wireless vibrating wire collector
Feign调用异常[Running, pool size = 10, active threads = 10, queued tasks = 0, completed tasks = n]
2022年安全员-B证考试模拟100题及答案
mysql主从架构 ,主库挂掉重启后,从库怎么自动连接主库
使用 GBase C API 执行存储过程是怎样的?
Learn to draw with nature communications -- complex violin drawing
ES6 let与const
This flick SQL timestamp_ Can ltz be used in create DDL