Home
Friday, April 18, 2014
11:09:04 PM
Users online: 0   You are here >> Home > The Green Room
The Green Room
Welcome to the best party in town
Forums | The Green Room Forums search
Forum FAQ
   
  1  
Formula to convert bytes to megabytes?
davidian 
21/3/03 10:41:54 AM
Champion

Shit, this probably belongs in the Tech Section, ah fruck it!

Anyhoo, anyone know of the exact formula for converting bytes to megabytes - I haven't got time to search through all the shitty results in Google that I've gotten so far!

At the moment I am using
bytes/1024000

-----
\ m/

fredzfrog 
21/3/03 10:43:09 AM
Master

mb=bytes\1024\1024
          ^     ^ 
to kB to mB

Edited by fredzfrog: 21/3/2003 10:44:08 AM
Edited by fredzfrog: 21/3/2003 10:44:39 AM

-----
damn u mu7a7ed. damn u 2 hell!

pbkg 
21/3/03 11:00:51 AM
Hero
Champion


MB = B/1000/1000

Of course,

MiB = B/1024/1024

-----
I am ready to RTFM, just point me in the right direction....

davidian 
21/3/03 11:28:55 AM
Champion

MiB?

Hang on, are we talking ISP values or real values?

How many bytes in a megabyte (real value)? 1024000?

Argh! Why won't my brain do math today?

-----
\ m/

1shot1kill 
21/3/03 11:33:48 AM
Master

bytes divided by 1048576 equals megabytes.

-----
"Why, they couldn't hit an elephant at this dist..."

Certa Cito

LordBug 
21/3/03 11:34:28 AM
Guru

there are 1024 bytes in a kilobyte

there are 1024 kilobytes in a megabyte


easy enough to go from there.

byte#/1024^2

thats real byte values too

-----
!¿ LuNAtiC ?¡

nighteyes: http://www.sniperhq.net/forum/viewforum.php?f=3

sometimes a chance is just another dream that doesn't come true

i love you megz *)

fredzfrog 
21/3/03 11:37:43 AM
Master

i'm talking real, computer values, not "box values"
damn... got a 60 gb hdd, and it turns out to be 55 gb. grrrz @ marketing peeps

-----
damn u mu7a7ed. damn u 2 hell!

engel 
21/3/03 11:38:55 AM
Champion

MiB?

MiB = Mebibyte.

http://physics.nist.gov/cuu/Units/binary.html

-----

SpudMuffin 
21/3/03 11:42:09 AM
Disciple

Quote by fredzfrog
i'm talking real, computer values, not "box values"
damn... got a 60 gb hdd, and it turns out to be 55 gb. grrrz @ marketing peeps



Depends how you look at it....
Kilo-byte = 1024 (in computer speak)
Kilo-byte = 1000 (in engineering speak, eg: Kilo-gram = 1000 grams, not 1024 grams)

Kilotonne, kilowatt, kilolitre, kilojoule etc etc

-----

davidian 
21/3/03 11:44:26 AM
Champion

Good link engel - so real values have gone out the window and now 'rounding' off is the norm (see below)?

one mebibyte 1 MiB = 1 048 576 B (Real value)
one megabyte 1 MB = 1 000 000 B (Mmmm...nice and round!)

Edited by davidian: 21/3/2003 11:45:13 AM

-----
Metal up your ass!

engel 
21/3/03 12:19:38 PM
Champion

so real values have gone out the window and now 'rounding' off is the norm (see below)?

Strictly speaking, what we in IT refer to as the 'real' values are not correct.

In the real world M = 10^6 = 1 000 000.

In our (IT) world M = 2^20 = 1 048 576.

In order to avoid confusion that's where the prefixes for binary multiples such as Ki, Mi, Gi etc come into play replacing K, M and G.

Although the 'b' prefixes have been approved by the IEEE, they are not yet widely adopted and you probably won't find them being used by many people (especially storage manufactures) for some time to come.

-----

BeDLaM#29 
21/3/03 12:22:33 PM
Overlord

1kB = 1000 bytes
1KB = 1024 bytes
As far as megabytes go I have no idea, as 1mB = 0.001 bytes.

Computer values for these are different as computers work in binary (2^10 = 1024) whereas we humans workin decimal (10^3 = 1000). For those that didn't already know. So I guess a megabyte would be 2^20 = 1048576.


Edited by BeDLaM#29: 21/3/2003 12:28:12 PM

-----
Live life like a dog,
If you can't screw it or eat it,
Piss on it!!!

usmell 
21/3/03 2:51:07 PM
Primarch

like the metric inch being 25 mm and not 15.4 mm, and the metric mile and shit, they just do it so they don't have to work as hard, but it does have it's good side, @least this way, people don't have to get confused over how big something REALLY is plus now were getting into terrabyte territory soon and those few extra 24 bytes per kilobyte and so on will really make the memory size world confusing, keep it metric i say, computers were invented to make our lives easier, the sooner people start thinking that, the easier it will become

-----
the ability to type does not make you inteligent

  1  
Forums | The Green Room