GB 和 GiB 的区别


Gibibyte (GiB) is one of the standard units used in the field of data processing and data transmission (along with mebibyte (MiB)kibibyte (KiB), etc.). Gibibyte, mebibyte, and kibibyte are defined as powers of 2.

1 GiB equals 230 bytes or 1,073,741,824 bytes. Gibibyte is closely related to gigabyte (GB), which can be a synonym of gibibyte or can refer to 109 bytes or 1,000,000,000 bytes in accordance with International System of Units (SI).

Gigabyte (GB) can have different meanings in different contexts. When referring to computer memory, gigabyte is allways a “power of two” - 1,073,741,824 bytes, but when measuring hard drive capacity it is often defined as 1,000,000,000 bytes. Generally, operating systems calculate disk and file sizes using binary numbers, so a new 500 GB drive you've just purchased would be reported by the OS as "465.66 GB" (meaning 465.66 GiB).


=============== TB GB  MB KB =================

1 TB = 1012 bytes = 1000 x 1000 x 1000 x 1000 bytes

1 GB = 109 bytes = 1000 x 1000 x 1000 bytes

1 MB = 106 bytes = 1000 x 1000 bytes

1 KB = 103 bytes = 1000  bytes

============================================

=============== TiB GiB  MiB KiB ===============

1 TiB = 240 bytes = 1024 x 1024 x 1024 x 1024 bytes

1 GiB = 230 bytes = 1024 x 1024 x 1024 bytes

1 MiB = 220 bytes = 1024 x 1024 bytes

1 KiB = 210 bytes = 1024  bytes

============================================

1 GiB = 1.073741824 GB

465.66 GiB ≈ 500 GB


总结

GB 是 十进制 的,GiB 才是 二进制 的。

但是现在经常在写法上,习惯用 GB 代替 GiB,导致有些应用场景下,会产生概念上的混淆。

就会导致一个商业误导,商家宣称一个 500 GB 的硬盘,其实只有 465 GB(其实这里的单位应该是GiB) 左右。

有兴趣深入了解的,可以参考如下资料:

https://www.wintelguy.com/gb2gib.html

最新文章

  1. iOS开发之再探多线程编程:Grand Central Dispatch详解
  2. Web开发的发展历史
  3. 如何系统地自学一门Python 语言(转)
  4. 转自文翼的博客:将本地时间转换为 GMT 时间
  5. codeforces 567D.One-Dimensional Battle Ships 解题报告
  6. win server2008R2安装framework1.1后,在应用池中不能编辑选择framework1.1的解决办法
  7. python检测字符串的字母
  8. CentOS7 Debian 8 安装VMware-tools
  9. 二分法查找(大于,大于等于x的最小,小于,小于等于x的最大值)
  10. 转: Android入门及效率开发
  11. 深入理解ob_flush和flush的区别
  12. 20个命令行工具监控 Linux 系统性能(转载)
  13. js学习--DOM操作详解大全 前奏(认识DOM)
  14. C# - ref
  15. 分散式-ubuntu12.04安装hadoop1.2.1
  16. gearman的安装和配置
  17. python扫描端口脚本
  18. (网页)web性能优化(转)
  19. 树莓派设置NTP同步
  20. Python爬虫(三)——对豆瓣图书各模块评论数与评分图形化分析

热门文章

  1. ad 拼板
  2. linux下安装google-chrome浏览器和chromedriver
  3. da面板修改SSH端口号
  4. Django 中 cookie的使用
  5. 用 D3.js 画一个手机专利关系图, 看看苹果,三星,微软间的专利纠葛
  6. 10-SQLServer中统计信息的使用
  7. Swagger2常用注解和使用方法
  8. 配置Multipath多路径环境
  9. poj 2431 Expedition 贪心+优先队列 很好很好的一道题!!!
  10. websocket 连接测试端口服务是否正常代码