![]() |
|
|
|||||||
![]() |
|
|
Thread Tools | Rate Thread |
|
|
PM User | #1 |
|
Regular Coder ![]() Join Date: Aug 2003
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
![]() |
how many bytes in 1k
Hi everyone... Hope everyone is doin' alright. My question might seem posted in the wrong section, I apologize... It's actually the closest I've found to post it...
here it is: how many bytes in one k? in other words: 1k = x bytes, could anyone give me the value of x? Very basic question sorry... But I do not remember the answer, can't find it on the web (crazy isn'it?)... So at first I would have guessed for 1000, then rather 1024... well, got confused... thanx for help
|
|
|
|
|
|
PM User | #2 |
|
Master Coder ![]() ![]() Join Date: Jul 2002
Posts: 6,589
Thanks: 0
Thanked 0 Times in 0 Posts
![]() |
Haha. So we meet again. Well, i looked it up and it seems i was rigth 1KB = 1024 bytes
http://whatis.techtarget.com/definit...2444%2C00.html |
|
|
|
|
|
PM User | #3 |
|
The thread killer ![]() ![]() Join Date: Feb 2003
Location: Umeå, Sweden
Posts: 5,575
Thanks: 0
Thanked 84 Times in 75 Posts
![]() |
Well, officially the mathematical prefixes are not to be used for binary approximations. In other words, if a hard drive manufacturer says his hard drives are 250 GB in size, that mean they are 250 000 000 000 bytes, not 268 435 456 000 bytes (which 250*2^30, or 250 GiB, would mean). However, the mathematical prefixes are used almost exclusively when it comes to the software side. Thus, the 250GB harddrive is actually only 232.8 GB according to the software. (A live example of this is displayed by Tim Bray at <http://www.tbray.org/ongoing/When/20...3/09/26/NewMac>)
Officially, you get the binary prefix by adding a small 'i' after the prefix.
__________________
liorean <[lio@wg]> Articles: RegEx evolt wsabstract , Named Arguments Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards |
|
|
|
|
|
PM User | #5 |
|
The thread killer ![]() ![]() Join Date: Feb 2003
Location: Umeå, Sweden
Posts: 5,575
Thanks: 0
Thanked 84 Times in 75 Posts
![]() |
Well, here you have the deal (talking binary as used by the computer):
1 byte (B, b): (2^0 bytes, iow 1 byte) 1 kilobyte (KB, kib): (2^10 bytes, iow 1024 bytes) 1 megabyte (MB, Mib): (2^20 bytes, iow 1 048 576 bytes, 1024 kib) 1 gigabyte (GB, Gib): (2^30 bytes, iow 1 073 741 824 bytes, 1 048 576 kib, 1024 Mib) 1 terrabyte (TB, Tib): (2^40 bytes, iow 1 099 511 627 776 bytes, 1 073 741 824 kib, 1 048 576 Mib, 1024 Gib)
__________________
liorean <[lio@wg]> Articles: RegEx evolt wsabstract , Named Arguments Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Rate This Thread | |
|
|