|
|
|
Ask HN: How many bytes are in a kilobyte?
|
|
5 points
by daviddavis
1630 days ago
|
|
This topic came up recently at work and I had always considered a kilobyte to be 1,024 bytes. However, SI seems to differentiate between a kilobyte and kibibyte (the latter being 1,024 bytes): https://physics.nist.gov/cuu/Units/binary.html I'm curious how other developers define kilobytes/megabytes/etc. |
|
I personally prefer the base-2 definitions despite the fact that they do not follow metric prefix naming.
The standard metric prefixes would make more sense if 10-bit bytes were used (one byte == one decabit == 10 bits).
That begs the question: Should we have metric bytes?