当前位置:网站首页>数据单位:位、字节、字、字长
数据单位:位、字节、字、字长
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
边栏推荐
- day17_ Under collection
- Those vulnerability attacks on app
- day16-集合上
- Ram block memory generator of vivado IP core
- IGMP protocol software development experiment
- Sequence list and linked list
- What are the advantages of software testing? See how much you know
- 软件包设置成——>YUM源
- Leetcode question brushing record
- Network Security Learning (II)
猜你喜欢

有用网站

How to use SFTP command to access SFTP server on the development board

VMware虚拟机在物理机win10系统下如何连接外网

day02_ Basic grammar

Hongke automation SoftPLC | Hongke kPa modk operation environment and construction steps (2) -- modk operation environment construction

比较单片机3种时钟电路方案

Hongke will share the EtherCAT demo for you and teach you how to quickly transition from other protocols to EtherCAT industrial bus

Hongke share | bring you a comprehensive understanding of "can bus error" (II) -- can error types

Design and simulation code of 4-bit subtracter based on FPGA

day04_数组
随机推荐
一文看懂网络安全五年之巨变
Complex floating point multiplication of vivado IP core floating point
IPv6表示方法与配置案例
网络安全学习(一)
Embedding理解+代码
多线程并发下的指令重排问题
Tcp/ip 五层参考模型以及对应的典型设备以及ipv6
Hongke solution | a unique solution to realize seamless integration at low cost in Digital Substations
LVM逻辑卷组的管理
On defect description style
解决分频模块modelsim下仿真输出为stx的错误
day04_数组
AbstractQueuedSynchronizer(AQS)之 ReentrantLock 源码浅读
Hongke share | let you have a comprehensive understanding of "can bus errors" (IV) -- producing and recording can errors in practice
What is the basic principle of Library collision and library collision attack
Merkletree builds QT implementation UI
Using STP spanning tree protocol to solve the problem of two-layer loop in network
软件包设置成——>YUM源
day16-集合上
5、 Wireless communication network