xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

1GB === 1000MB & 1GB === 1024MB

字节单位换算

1 Gigabyte = 1000 Megabytes

1 Gibibyte = 1024 Mebibytes

十进制单位

数学上使用十进制,方便人们日常交流

Math.pow(10, 3);
// 1000

10**3;
// 1000


1 Gigabyte = 1000 Megabytes

https://en.wikipedia.org/wiki/Megabyte

二进制单位

计算机使用 01 二进制

高电平/低电平
true / false
二值性

1024 ≈ 1000

2^10 == 1024 约等于 1000, 方便用来表示


Math.pow(2, 10);
// 1024

2**10;
// 1024

1 Gibibyte = 1024 Mebibytes

https://en.wikipedia.org/wiki/Mebibytes

Byte

字节

1Byte === 8Bit 位

https://en.wikipedia.org/wiki/Byte

1GB === 1000MB
1MB === 1000KB
1KB === 1000B
1B === 8bit 位

编程语言-数据类型

C / Java

字节长度

Char 字符型 1

Short 短整型 2
Int 整型 4
Long 长整型 4
Long Long 长整型 8

Float 单精度浮点数
Double 双精度浮点数

refs



©xgqfrms 2012-2020

www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!


原文地址:https://www.cnblogs.com/xgqfrms/p/13934201.html