Go Back   CodingForums.com > :: Computing & Sciences > Computer Programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Old 10-12-2003, 09:40 AM   PM User | #1
jeskel
Regular Coder

 
Join Date: Aug 2003
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
jeskel is an unknown quantity at this point
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
jeskel is offline   Reply With Quote
Old 10-12-2003, 10:16 AM   PM User | #2
raf
Master Coder


 
Join Date: Jul 2002
Posts: 6,589
Thanks: 0
Thanked 0 Times in 0 Posts
raf is on a distinguished road
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
raf is offline   Reply With Quote
Old 10-12-2003, 07:07 PM   PM User | #3
liorean
The thread killer


 
Join Date: Feb 2003
Location: Umeå, Sweden
Posts: 5,575
Thanks: 0
Thanked 84 Times in 75 Posts
liorean will become famous soon enough
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
liorean is offline   Reply With Quote
Old 10-12-2003, 11:00 PM   PM User | #4
jeskel
Regular Coder

 
Join Date: Aug 2003
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
jeskel is an unknown quantity at this point
ok guys, thanx a lot for these informations... But that leads me to a doubt... in one Mega, there are 1000k right?

well, anyway, thanx for the answers
jeskel is offline   Reply With Quote
Old 10-12-2003, 11:14 PM   PM User | #5
liorean
The thread killer


 
Join Date: Feb 2003
Location: Umeå, Sweden
Posts: 5,575
Thanks: 0
Thanked 84 Times in 75 Posts
liorean will become famous soon enough
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
liorean is offline   Reply With Quote
Old 10-13-2003, 10:53 AM   PM User | #6
jeskel
Regular Coder

 
Join Date: Aug 2003
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
jeskel is an unknown quantity at this point
thanx a lot... very nice reply. see you soon
jeskel is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:34 AM.

Home - Contact Us - Archives - Link to CF - Resources - Top 

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.