Q) How many bytes are in 1 GB? 
We could approximate that 1 Gigabyte has 1 billion bytes, but the correct answer is 2^30 bytes.
How can I remember this answer in the future? Well here is one trick to always remember this. Please read how to build the following table:
 
We could approximate that 1 Gigabyte has 1 billion bytes, but the correct answer is 2^30 bytes.
How can I remember this answer in the future? Well here is one trick to always remember this. Please read how to build the following table:
- Starting with 1 byte = 2^0 bytes, make a table multiplying the previous row by 2, or just annotate the next power of 2: 2^0, 2^1, 2^2, 2^3, etc.
 - Once you reach 2^10 bytes, you can call it 1 KB (which is not 1,000, but 1024 bytes)
 - For 2^10 to 2^19, the table mirrors the first 10 rows, except for we add the unit K (Kilo). So 2^10 B is 1 KB, 2^11 B is 2 KB, 2^12 B is 4 KB, and so forth.
 - Once you reach 2^20 bytes, you can call it 1 MB (which is not precisely 1million bytes, but 1024^2 bytes)
 - The rule #3 is analog for 2^20 to 2^29, 2^30 to 2^39, etc. So 2^25 B [= 2^(20+ 5) B] is 2^5 MB or 32 MB and 2^37 [= 2^(30+ 7) B] is 2^7 MB 128 GB.
 
Decimal  
(Bytes) 
 | 
Digital Storage (Bytes) 
 | 
2^0 
 | 
1 
 | 
2^1 
 | 
2 
 | 
2^2 
 | 
4 
 | 
2^3 
 | 
8 
 | 
2^4 
 | 
16 
 | 
2^5 
 | 
32 
 | 
2^6 
 | 
64 
 | 
2^7 
 | 
128 
 | 
2^8 
 | 
256 
 | 
2^9 
 | 
512 
 | 
2^10 
 | 
1 K (1024) 
 | 
2^11 
 | 
2 K 
 | 
2^12 
 | 
4 K 
 | 
... 
 | 
... 
 | 
2^20 
 | 
1 M (1024^2) 
 | 
2^21 
 | 
2 M 
 | 
... 
 | 
... 
 | 
2^30 
 | 
1 G (1024^3) 
 | 
2^40 
 | 
1 T 
 | 
No comments:
Post a Comment
Please, before starting to comment, evaluate if what you want to write is useful, respectful and positive. A kid may read this also.
Give a good example!