this post was submitted on 28 Mar 2024
367 points (93.6% liked)

Programmer Humor

32380 readers
1432 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] the_crotch@sh.itjust.works 3 points 7 months ago (2 children)

1 kB is 1024 bytes and a byte is 8 bits. That is not metric. It just uses metric prefixes.

[–] lseif@sopuli.xyz 19 points 7 months ago (1 children)

1kB = 1000 bytes, 1KiB = 1024 bytes

[–] Matombo@feddit.de 3 points 7 months ago (1 children)

1kB is 1000B you are using KiB which Windows to this day calls KB -.-

[–] Sibbo@sopuli.xyz 0 points 7 months ago

Linux kernel guilty as well. It reports memory in "kb", but digging through documentation, you will at some point see that they actually mean KiB. The "kb" would be 1000 bits.