当前位置:网站首页>Data storage 3
Data storage 3
2022-07-07 05:51:00 【It's Yi'an】
Part1:
With or without symbols operation Sleep(haomiao)(windows.h)for unsigned Cyclic sign change
character ’\0’
The operation with or without symbols is the same as the normal operation , The complement solves this problem , Make addition and subtraction unified . As long as it is not negative , With or without symbols , In the calculation process, only the scope problem and the output form problem can be considered .
Sleep() Dormancy function , Stop the program , Enter an integer representing milliseconds , stay Windows Header file .
Cyclic sign change , In a data type , No matter what number you enter , Its value will be in the range of this type . Such as 11111111+1=00000000, Start the cycle .
character ‘’\0’ In defining char of use = The assignment of number will be automatically followed by one , If you assign values to its elements one by one , Will not be automatically added , Use this time strlen() function , You will get a random value .
Part2:
floating-point %lf Scientific counting -1*s*M*2^E 1 8 23 1 11 52 E negative In the middle Take out E
Stored value True value E For zero E For all 1
We talked about that before , use 0101010…… To store all the data , Different rules mean different data types , How to formulate these regulations , It's not what we're talking about now . The same is true for floating-point types , The rule is -1*S*M*2^E, Where, it represents positive and negative ,1 Negative ,0 Being positive .M It's valid data ,E Is the exponential size . Such as 3.5 Expressed in binary as 11.1, The scientific counting method is 1.11*10^1; be S=0;M=1.11,E=1. Knowing these three data, you can store it in memory .32 In a (float) Use the first place to express S, The last eight digits indicate E, because E May be a negative , So add a middle value 2^7-1(127), When we store, the real value plus the intermediate value is the stored value .M The form of must be 1,xxxx…, Because of all M At the beginning 1, Therefore, when storing . The problem of storage has been solved , There are still some points to pay attention to when taking it out .
Pay attention to put it in. We are right M and E Did something , Take it out in reverse , There are two special cases :
E It's all zero , It's true at this time E by -127, It's a very small value , So we directly stipulate E by 1- In the middle , and M No more filling when taking out 1, But make up 0.
E For all 1, It's true at this time E by 128, This time means infinity .
边栏推荐
- Différenciation et introduction des services groupés, distribués et microservices
- Flinksql read / write PgSQL
- CVE-2021-3156 漏洞复现笔记
- Web architecture design process
- Pytorch builds neural network to predict temperature
- 得物客服一站式工作台卡顿优化之路
- SAP ABAP BDC (batch data communication) -018
- 如何提高网站权重
- Cve-2021-3156 vulnerability recurrence notes
- Go language context explanation
猜你喜欢
Introduction to distributed transactions
京东商品详情页API接口、京东商品销量API接口、京东商品列表API接口、京东APP详情API接口、京东详情API接口,京东SKU信息接口
mac版php装xdebug环境(m1版)
SAP ABAP BDC(批量数据通信)-018
How does mapbox switch markup languages?
Reading the paper [sensor enlarged egocentric video captioning with dynamic modal attention]
Realize GDB remote debugging function between different network segments
往图片添加椒盐噪声或高斯噪声
得物客服一站式工作台卡顿优化之路
C#可空类型
随机推荐
mac版php装xdebug环境(m1版)
zabbix_ Get test database failed
Mybaits multi table query (joint query, nested query)
常用消息队列有哪些?
I didn't know it until I graduated -- the principle of HowNet duplication check and examples of weight reduction
R language [logic control] [mathematical operation]
Paper reading [open book video captioning with retrieve copy generate network]
Red Hat安装内核头文件
[daily training -- Tencent selected 50] 292 Nim games
目标检测中的BBox 回归损失函数-L2,smooth L1,IoU,GIoU,DIoU,CIoU,Focal-EIoU,Alpha-IoU,SIoU
数据中心为什么需要一套基础设施可视化管理系统
Wechat applet Bluetooth connects hardware devices and communicates. Applet Bluetooth automatically reconnects due to abnormal distance. JS realizes CRC check bit
微信小程序蓝牙连接硬件设备并进行通讯,小程序蓝牙因距离异常断开自动重连,js实现crc校验位
JD commodity details page API interface, JD commodity sales API interface, JD commodity list API interface, JD app details API interface, JD details API interface, JD SKU information interface
async / await
On the difference between FPGA and ASIC
Bat instruction processing details
分布式事务解决方案之2PC
5. 数据访问 - EntityFramework集成
SQL query: subtract the previous row from the next row and make corresponding calculations