Thread: why kbyte=2^10 ??

  1. #1
    Banned
    Join Date
    Oct 2008
    Posts
    1,535

    why kbyte=2^10 ??

    a byte=2^8

    kilo=1000

    2^8 * 1000 differs 2^10

    ??

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Search the Web for kilobyte and kibibyte.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Banned
    Join Date
    Oct 2008
    Posts
    1,535
    kibibyte??

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    If you have to ask that, it means you have not searched.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  5. #5
    Registered User
    Join Date
    Aug 2006
    Posts
    100
    Quote Originally Posted by transgalactic2 View Post
    a byte=2^8
    A byte = 2^8 ??

    What are you talking about?

  6. #6
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  7. #7
    Registered User C_ntua's Avatar
    Join Date
    Jun 2008
    Posts
    1,853
    Yeah, you got it a bit wrong.
    A bytes = 8 bits
    A kilobyte = 1024 bytes = 1024*8 bits

    So it is 1024 instead of 1000. The difference is small

  8. #8
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    The SI maniacs who know nothing about the architecture of a computer are trying to force people to use 1 kilobyte = 1000 bytes. I'm not going for it.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  9. #9
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    Why not? It makes sense. And there is kibibyte (not like it disappeared), which would make advertising a whole lot better IMO.

    That being said, I never use the kibi and friend variants

  10. #10
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,195
    call me old fashioned but a kilobyte will always be 1024 bytes. advertisers ........ me off by using the stupid 1000 byte rule, it didnt make much difference when they rounded megabytes, but now they are selling terabyte drives that only have 960 GB of storage. Thats a significant difference, and the error will only get larger as capacities increase. There actually will be a point in the forseable future when it will be off by >10&#37;. Its stupid and they are trying to force the correct viewpoint to change, rather than just make manufacturers print the correct (lower) capacities on their boxes. A foot is about 10 inches, so rope manufacters should start selling 50 inches of rope as '5 feet'. Its exactly the same as what the storage manufacturers are doing.
    Last edited by abachler; 10-10-2008 at 12:42 AM.

Popular pages Recent additions subscribe to a feed