Kilo / Mega / Tera字节的表示形式 [英] Representation of a Kilo/Mega/Tera Byte

查看:109
本文介绍了Kilo / Mega / Tera字节的表示形式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对不同字节单位的表示有些困惑。



在整个1字节= 8位中被接受。



但是,在很多资料中看到


1 KB = 2 ^ 10字节= 1024字节


AND


1 KB = 1000字节


这不是矛盾之处吗?,因为在两种情况下都说1字节是8位...?



<不同来源对这些不同表示形式的主张有不同的原因,因此,我不确定造成这种相当混乱的表示形式差异的最重要/真正原因是什么。



有人可以解释和澄清吗?

解决方案


1字节= 8位是可以接受的



但是,在很多资料中我都看到了



1千字节= 2 ^ 10字节= 1024字节



AND



1千字节= 1000 bytes


为确保我们都清楚,您的问题是千字节等于1024字节还是1000字节?。


这并不矛盾,因为在两种情况下都声明1字节为8位...?


这与问题无关。



那么,让我们开始吧。在SI(公制)中,乘数1000称为千,缩写为k。 k 总是表示1000,从没有。



当二进制计算机进入世界时,我们注意到2的10的幂是1024,方便地接近1000。计算机工程师决定滥用这种巧合,并说公斤表示1024。通过扩展,他们说兆表示1024 2 (而不是1000 2的正确定义。 ),等等,例如千兆字节,兆兆字节等。



尽管许多目的1000和1024之间的差异很小,但有时准确答案有时是必不可少的,这就是滥用术语伤害所有人的地方。只有在千分之一千分之一秒后,几十个人才真正尝试解决该问题。 IEC为二进制乘法器提出了新的前缀:1024 = kibi,1024 2 = mebi,1024 3 = gibi等。



总而言之,公斤= 1024的概念是对公斤= 1000的一致SI定义的滥用。尽管kg = 1024在计算机行业很流行,但是它是错误的,应该用kibi = 1024代替。或需要重新计算数字以反映公斤/兆英等的真实定义。 (例如, 512 MB的RAM实际上约为536.9 MB。)



Btw,请不要使用随机大小写;



引用和链接:




I was getting a little confused with the representation of different units of bytes.

It is accepted throughout that 1 byte = 8 bits.

However, in a lot of sources I have seen that

1 kiloByte = 2^10 bytes = 1024 bytes

AND

1 kiloByte = 1000 bytes

Doesn't this contradict as in both cases it is stated that 1 byte is 8 bits...?

Different sources claim different reasons for these different representations, thus I am not sure what the most important/real reason is for this rather confusing difference in representation.

Can someone please explain and clarify?

解决方案

It is accepted throughout that 1 byte = 8 bits

However, in a lot of sources I have seen that

1 kiloByte = 2^ 10 bytes = 1024 bytes

AND

1 kiloByte = 1000 bytes

To make sure we're all clear, your question is "Is a kilobyte equal to 1024 bytes or 1000 bytes?".

Doesn't this contradict as in both cases it is stated that 1 byte is 8 bits...?

This is irrelevant to the question.

So, let's begin. In SI (metric), the multiplier of 1000 is called kilo, abbreviated k. k always means 1000, never anything else.

When binary computers entered the world, we noticed that 2 to the power of 10 is 1024, which is conveniently close to 1000. Computer engineers decided to abuse this coincidence and say that kilo means 1024. By extension, they say that mega means 10242 (instead of the proper definition of 10002), and so on with giga, tera, etc.

While the difference between 1000 and 1024 is small for many purposes, there are times when exact answers are required, and this is where the abusive terminology hurts everyone. Only after decades after kilo=1024 got established did anyone really try to fix the problem. The IEC proposed new prefixes for the binary multipliers: 1024 = kibi, 10242 = mebi, 10243 = gibi, etc.

In summary, the notion that kilo=1024 is an abusive deviation from the consistent SI definition of kilo=1000. While kilo=1024 is popular in the computer industry, it is nevertheless wrong and should be replaced by kibi=1024. Or numbers need to be recomputed to reflect the true definition of kilo/mega/etc. (For example, "512 MB" of RAM is actually about 536.9 MB.)

Btw, don't use random capitalization; it's spelled kilobyte, not kiloByte.

References and links:

这篇关于Kilo / Mega / Tera字节的表示形式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆