Is it 1000000 (1000*1000) or 1048576 (1024*1024)?
Or rather, if I wanted to allocate blocks of around 1mb each, which size should I use? I guess OS memory managers might prefer one over the other...
Superpig
- saving pigs from untimely fates, and when he''s not doing that, runs The Binary Refinery.
Enginuity1 | Enginuity2 | Enginuity3 | Enginuity4
How many bytes in a megabyte?
The second - there are 1024 bytes in a kilobyte, and 1024 kilobytes to a megabyte. So (1024*1024), in short.
OK, thanks. I thought the first was too neat to be right.
Superpig
- saving pigs from untimely fates, and when he''s not doing that, runs The Binary Refinery.
Enginuity1 | Enginuity2 | Enginuity3 | Enginuity4
Superpig
- saving pigs from untimely fates, and when he''s not doing that, runs The Binary Refinery.
Enginuity1 | Enginuity2 | Enginuity3 | Enginuity4
Not since 1998.
Since then, there have been 1000000 bytes in a megabyte and 1000 bytes in a kilobyte.
Since then, there have been 1000000 bytes in a megabyte and 1000 bytes in a kilobyte.
quote:Original post by dagarach
Not since 1998.
Since then, there have been 1000000 bytes in a megabyte and 1000 bytes in a kilobyte.
Yup, and 1024 meters in kilometer.
Nope:
1024 metres in a kibimetre.
1000 metres in a kilometre.
1024 bytes in a kibibyte.
1000 bytes in a kilobyte.
1024 metres in a kibimetre.
1000 metres in a kilometre.
1024 bytes in a kibibyte.
1000 bytes in a kilobyte.
Then how come my computer's hard drive like everyone elses computes using a base 2 to multiple powers of ten to show hard drive space. How come when an adveriser says a hard drive at "80 Gigabytes" I notice it is closer to "75 Gigabytes"? Surely it is plain to see computers don't use base 10 computation and that the OP was correct in his assertion.
EDIT: I see your point Dagarach, you are correct also, its just that no one seems to fall in line with it.
Here is an excerpt from a website glossary:
kilo- (k-) [2]
in measuring the memory of a computer, the prefix kilo- often means 2^10 = 1024 instead of 1000. By a 1998 resolution of the International Electrotechnical Commission, the new prefix kibi- (Ki-) should replace kilo- for 2^10. However, this doesn't seem to be happening. ROOFLES!!
[edited by - nervo on August 6, 2003 7:18:12 AM]
EDIT: I see your point Dagarach, you are correct also, its just that no one seems to fall in line with it.
Here is an excerpt from a website glossary:
kilo- (k-) [2]
in measuring the memory of a computer, the prefix kilo- often means 2^10 = 1024 instead of 1000. By a 1998 resolution of the International Electrotechnical Commission, the new prefix kibi- (Ki-) should replace kilo- for 2^10. However, this doesn't seem to be happening. ROOFLES!!
[edited by - nervo on August 6, 2003 7:18:12 AM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement