7 ms·
Thanks for sharing! Unfortunately, bytes representations are wrong. As you may now, there is a difference between kilobytes (KB) and kibibytes (KiB), megabytes
by gioi 12y ago
Thanks for sharing! Unfortunately, bytes representations are wrong.
As you may now, there is a difference between kilobytes (KB) and kibibytes (KiB), megabytes (MB) and mibibytes (MiB) et cetera. 1 KiB = 1024 bytes = 1.024 KB.
Please check out https://en.wikipedia.org/wiki/Binary_prefix https://en.wikipedia.org/wiki/Binary_prefix and fix your library :)
- scotth 12y agoThat convention is not universally recognized.
- peterashford 12y ago...or barely recognised at all?