Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by amelius

24 days ago

At this point I just wish 2^10 didn't end up so close to 1000.

4 comments

amelius

Reply

hackyhacky  24 days ago

To avoid confusion, I always use "kilobyte" to refer to exactly 512 bytes.

  • 1718627440  22 days ago

    Why don't you use sectors for that?

    • hackyhacky  22 days ago

      Because sectors refer to disk storage. It sounds weird to say "I need to malloc 300 sectors."

  • cperciva  24 days ago

    Not to be confused with a kilonibble, which is 500 bytes.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities