Completely [i]Not[/i] Worth Your Time
Completely [i]Not[/i] Worth Your Time
|
So my friend and I were talking about his 2tb hard drive and int64's. int64 is 64 bits or 8 bytes, and can store a number from -9^18 to 9^18. We were trying to figure out how big of a number a 2tb hard drive can store, roughly. Here's the math that I worked out, I have no clue if its right.
2(tb)x1000=2000(gb)x1000=2000000(mb)x1000=2000000000(bytes)
So a 2 terabyte hard drive is 2^9 bytes. Right?
Given that 8 bytes can store a number up to 9^18 we divide (2^9)/8 giving us 250000000 8 byte sectors. We then multiply 2.5^8 by 9^18 (2.5^8)(9^18). That gives us 2.2(10^22). So a 2tb hard drive should be able to, roughly, store a number up to 22000000000000000000000.
Right?
|
|
|
|
≡
|
2010 Nov 27 at 04:03 UTC
— Ed. 2010 Nov 27 at 04:05 UTC
|
|
|
SRAW
Rocket Man
2007 Nov 6 • 2525
601 ₧
|
sprinkles said: 22000000000000000000000 digits
|
|
|
|
≡
|
2010 Nov 27 at 05:50 UTC
|
|
|
Rockbomb
Dog fucker (but in a good way now)
2009 Nov 14 • 2045
|
SJ I think you need to work on your site security, someone hacked SRAW's account and posted something intelligent
|
|
|
|
≡
|
2010 Nov 27 at 06:01 UTC
|
|
|
|
1 byte=8 bits
1 kilobyte(kb)=1024 bytes
1 megabyte(mb)=1024 kilobytes or ~1,000,000 bytes
1 gigabyte(gb)=1024 megabytes or~1,000,000,000 bytes
1 TERABYTE (TB)= 1024 gigabutes or ~1,000,000,000,000 bytes
1 petabyte (pb)=1024 terabytes or~1,000,000,000,000,000 bytes
got this from a website maybe will help you
melloyellow582 said: I post sometimes, to make a point.
|
|
|
|
≡
|
2010 Nov 27 at 06:38 UTC
|
|
|
SRAW
Rocket Man
2007 Nov 6 • 2525
601 ₧
|
fedex _ said: 1 byte=8 bits
1 kilobyte(kb)=1024 bytes
1 megabyte(mb)=1024 kilobytes or ~1,000,000 bytes
1 gigabyte(gb)=1024 megabytes or~1,000,000,000 bytes
1 TERABYTE (TB)= 1024 gigabutes or ~1,000,000,000,000 bytes
1 petabyte (pb)=1024 terabytes or~1,000,000,000,000,000 bytes
got this from a website maybe will help you
everyone knows that..
and nobody hacked by account rockbomb, it was just an example of how helpful the non-troll version of SRAW can be
|
|
|
|
≡
|
2010 Nov 27 at 09:29 UTC
|
|
|
Down Rodeo
Cap'n Moth of the Firehouse
2007 Oct 19 • 5486
57,583 ₧
|
OMG
Anyway, yes, fedex_ has the right size. Didn't you listen last night? I'll try again because I think I was a factor of 8 out.
If you have four bits (half a byte) you can store 16 separate values, or 2^4. Similarly one byte can store 256 different values. If you use the traditional unsigned integer format obviously the largest value you can store is, in fact, 256-1. So, 2^number of bits - 1 is the largest value.
On a 2TB HDD you have 2*10^12 bytes = 16*10^12 bits. Assuming, that is, the drive has exactly that amount of storage available and that the manufacturers use the SI standard for their prefixes (this is why Microsoft reports disc sizes as smaller, they are using technically what are called Gi, Ki etc.)
Thusly the largest number storable is 2^16000000000000 -1. We can do a little better, as 2^10 ~ 10^3. 2^16000000000000 = (2^10)^1600000000000 so 2^16000000000000 ~ 10^4800000000000.
That is to say, a huge number. Staggeringly big. It is far bigger than a googol, but less than a googolplex. http://en.wikipedia.org/wiki/Large_numbers
|
|
|
|
≡
|
2010 Nov 27 at 13:46 UTC
|
|
|
|
Lulz, I completely forgot about KBs.
|
|
|
|
≡
|
2010 Nov 27 at 17:17 UTC
|
|
|
Page [1]
|
|