将字节转换为兆字节 [英] Converting bytes to megabytes

查看:225
本文介绍了将字节转换为兆字节的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看到了三种从字节到兆字节的转换方式:

I've seen three ways of doing conversion from bytes to megabytes:

  1. megabytes = bytes/1000000
  2. megabytes = bytes/1024/1024
  3. megabytes = bytes/1024/1000

好的,我认为#3完全错误,但是我已经看到了.我认为#2是正确的,但我正在寻找一些受人尊敬的权威机构(例如W3C,ISO,NIST等)来澄清哪个兆字节是真正的兆字节.任何人都可以引用明确说明此计算过程的信息来源吗?

Ok, I think #3 is totally wrong but I have seen it. I think #2 is right, but I am looking for some respected authority (like W3C, ISO, NIST, etc) to clarify which megabyte is a true megabyte. Can anyone cite a source that explicitly explains how this calculation is done?

奖金问题:如果#2是兆字节,那么#1和#3叫什么?

Bonus question: if #2 is a megabyte what are #1 and #3 called?

顺便说一句:硬盘驱动器制造商不算这方面的权威!

BTW: Hard drive manufacturers don't count as authorities on this one!

推荐答案

传统上,以兆字节为单位表示您的第二个选择-1兆字节= 2 20 字节.但这实际上是不正确的,因为兆表示1000000.有一个新的标准名称,表示2 20 字节,即兆字节(

Traditionally by megabyte we mean your second option -- 1 megabyte = 220 bytes. But it is not correct actually because mega means 1 000 000. There is a new standard name for 220 bytes, it is mebibyte (http://en.wikipedia.org/wiki/Mebibyte) and it gathers popularity.

这篇关于将字节转换为兆字节的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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