当前位置:网站首页>数据单位:位、字节、字、字长
数据单位:位、字节、字、字长
2022-07-29 05:27:00 【yc_ZZ】
一、bit(位)
位是最基本的概念,它的英文名字叫(bit),表示二进制位。
Bit:音译为“比特”,简称“b”,指二进制位,由0,1组成。
是计算机内存中最小的单位,也是最基本的单位
注意:位习惯上用小写的b表示,字节习惯上用大写的B表示。
二、Byte(字节)
Byte:译为“字节”,简称“B”,当记忆体容量过大时,Byte 这个单位就不够用,因此就有KB\MB\GB等出现。
是计算机系统中最小的存储单位
1 Byte 由 8 bits 组成
三、字
字(Word)代表计算机处理指令或数据的二进制数位数,是计算机进行数据存储和数据处理的运算的单位。
一个字通常由一个或多个(一般是字节的整数位)字节构成。
对于32位计算机与64位计算机,字的大小往往不同。
32位计算机:1字=32位=4字节,64位计算机:1字=64位=8字节
四、字长
字长是计算机的每个字所包含的位数,通俗的讲,字长就是字的长度,这里的长度用位来表示。
根据计算机的不同,字长有固定的和可变的两种。
固定字长:即字长在什么情况都是固定不变的;
可变字长:即在一定范围内,其长度是可变的。
三、单位换算
1字节(Byte)=8位(bit)
1 KB = 1024 B = 2^10 B
1 MB = 1024 KB = 2^20 B
1 GB = 1024 MB = 2^30 B
1 TB = 1024 GB = 2^40 B
四、应用

先看MB能化成多少字节:(256×1024×1024)Byte
再看1个字节是8位二进制数
计算能换成多少二进制数 (256×1024×1024)×8 bit(位)
再看化出的二进制数位数能分成多少个32位 (256×1024×1024×8)/32
边栏推荐
- day04_数组
- ss命令详解
- Traffic characteristics of webshell management tools
- MySQL 事物四种隔离级别分析
- 20个hacker神器
- day03_2_作业
- FPGA - odd even frequency division and decimal frequency division code routine
- Hongke share | FPGA implementation of pass through and store and forward switching delay
- greenplum企业部署
- Hongke share | let you have a comprehensive understanding of "can bus error" (III) -- can node status and error counter
猜你喜欢

Floating point square root of vivado IP core floating point

Embedding理解+代码

Hongke case | PAC: an integrated control solution integrating SoftPLC control logic, HMI and other service functions

Floating point addition and subtraction method of vivado IP core floating point

Design of IIR filter based on FPGA

Ansible(自动化软件)

MySQL 事物四种隔离级别分析

day02_ Basic grammar

Hongke automation SoftPLC | modk operation environment and construction steps (1) -- Introduction to operation environment

会话推荐中的价格偏好和兴趣偏好共同建模-论文泛读
随机推荐
如何在开发板上使用sftp命令访问sftp-server
How to use SFTP command to access SFTP server on the development board
网络工具中的“瑞士军刀”-nc
day04_ array
MQTT服务器搭建以及使用MQTT.fx测试
Hongke case | PAC: an integrated control solution integrating SoftPLC control logic, HMI and other service functions
Hongke | uses jesd204 serial interface to bridge analog and digital worlds at high speed
Ultra low cost DDoS attacks are coming. See how WAF protects Jedi
What is WAF protection
网站受DDoS攻击的表现以及查看方法
Multithreaded server programming
Complex floating point multiplication of vivado IP core floating point
Hongke share | bring you a comprehensive understanding of "can bus error" (I) -- can bus error and error frame
FIR filter design (1) -- using the FDATool toolbox of MATLAB to design FIR filter parameters
Hongke share | bring you a comprehensive understanding of "can bus error" (II) -- can error types
DDoS攻击与CC攻击的区别
Annotation
VMware虚拟机在物理机win10系统下如何连接外网
Merkletree builds QT implementation UI
After the EtherCAT master station is disconnected, how to ensure that the target system is not affected by the fault?