Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

字节单位的改进 #58

Open
AboutCXJ opened this issue Nov 6, 2023 · 0 comments
Open

字节单位的改进 #58

AboutCXJ opened this issue Nov 6, 2023 · 0 comments

Comments

@AboutCXJ
Copy link

AboutCXJ commented Nov 6, 2023

当前程序版本

1.4.0

功能改进

KiB、MiB与KB、MB的区别

KB和MB是由 国际单位制(SI)制定的十进制标准,而KiB和Mib是由国际电工委员会(IEC)制定的二进制标准。
也就是通常所说的SI和IEC标准。

具体换算关系:

不带“i”的单位换算:

1KB = 10^3 = 1000 Byte
1MB = 10^6 = 1000*1000 Byte = 1000KB
带“i”的单位换算

1KiB = 2^10 = 1024 Byte
1MiB = 2^20 = 1024*1024 Byte = 1024KiB

参考资料

https://dbaspider.github.io/2021/04/26/KiB、KB和Kb傻傻分不清?/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant