Results 1 to 10 of 10

Thread: Why 1024?

  1. #1

    Thread Starter
    Fanatic Member alkatran's Avatar
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    860

    Why 1024?

    Why are there 1024 bytes in a kilobyte? I know that 2^10 is 1024, etc etc. But if you're counting the number of bytes, the number isn't restricted to powers of 2.

    Is it just so the computer can calculate filesize faster?
    Don't pay attention to this signature, it's contradictory.

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    a kilobyte is just a convention of specifying memory size, it just more convenient to use base 2 when talking about memory stored binarily
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3

  4. #4
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682
    1024 was chosen because it just happened to be the power of two nearest to 1000 which is the normal designation for Kilo (bytes, grams, tons etc...).

    Decimal (aka: base 10, radix 10) is completely arbitrary as far as computers are concerned, binary is gospel!
    I don't live here any more.

  5. #5
    Lively Member Wally Pipp's Avatar
    Join Date
    Jan 2002
    Location
    Carnivàle
    Posts
    79
    Err well :

    1000 bin : 8 dec.
    10000 bin : 16 dec.
    100000 bin : 32 dec.
    1000000 bin : 64 dec.
    10000000 bin : 128 dec.
    100000000 bin : 256 dec.
    1000000000 bin : 512 dec.
    10000000000 bin : 1024 dec.

    Seems to me that it's just a simple conversion matter
    A post brought to you by the Grim Reaper Appreciation Society™

    "Buy your lifetime subscription now and save on your coffin"

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Originally posted by Wally Pipp


    1000 bin : 8 dec.
    10000 bin : 16 dec.
    100000 bin : 32 dec.
    1000000 bin : 64 dec.
    10000000 bin : 128 dec.
    100000000 bin : 256 dec.
    1000000000 bin : 512 dec.
    10000000000 bin : 1024 dec.

    December has 31 days.

  7. #7
    Lively Member Wally Pipp's Avatar
    Join Date
    Jan 2002
    Location
    Carnivàle
    Posts
    79
    Yeah and they couldn't find one bin laden let alone 100000000 of them
    A post brought to you by the Grim Reaper Appreciation Society™

    "Buy your lifetime subscription now and save on your coffin"

  8. #8
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

  9. #9
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682
    Douglas Adams trivia (Ubergeek level)

    Ford and Arthur playing scrabble get "what is six multiplied by nine"? on the board. Douglas apparently didn't realise that in base 13 maths...

    (6)13 * (9)13 = (54)13 = (42)decimal

    How amazing is that? Douglas said later on "I am not in the habit of making jokes in base thirteen!"

    Just a weird coincidence? I rather think not



    (Read "The Hitchhiker's Guide to the Galaxy" if you don't know what I'm on about.)
    Last edited by wossname; Mar 30th, 2004 at 05:19 AM.
    I don't live here any more.

  10. #10
    Lively Member Wally Pipp's Avatar
    Join Date
    Jan 2002
    Location
    Carnivàle
    Posts
    79
    He really did find the answer to Life, the Universe and Everything.
    A post brought to you by the Grim Reaper Appreciation Society™

    "Buy your lifetime subscription now and save on your coffin"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width