TC uses improper conventions, where e.g.
1 MB (megabyte) = 1048576 B (byte)
but standardized 1 MB means 1000000 B
if you want to display 1048576 B, you use 1 MiB (megabinary byte)
more at Definitions of the SI units: The binary prefixesBecause the SI prefixes strictly represent powers of 10, they should not be used to represent powers of 2. Thus, one kilobit, or 1 kbit, is 1000 bit and not 2^10 bit = 1024 bit. To alleviate this ambiguity, prefixes for binary multiples have been adopted by the International Electrotechnical Commission (IEC) for use in information technology.
In December 1998 the International Electrotechnical Commission (IEC), the leading international organization for worldwide standardization in electrotechnology, approved as an IEC International Standard names and symbols for prefixes for binary multiples for use in the fields of data processing and data transmission. The prefixes are as follows:
Code: Select all
----------------------------------------------------------------- Prefixes for binary multiples ----------------------------------------------------------------- Factor Name Symbol Origin Derivation 2^10 kibi Ki kilobinary: (2^10)^1 kilo: (10^3)^1 2^20 mebi Mi megabinary: (2^10)^2 mega: (10^3)^2 2^30 gibi Gi gigabinary: (2^10)^3 giga: (10^3)^3 2^40 tebi Ti terabinary: (2^10)^4 tera: (10^3)^4 2^50 pebi Pi petabinary: (2^10)^5 peta: (10^3)^5 2^60 exbi Ei exabinary: (2^10)^6 exa: (10^3)^6 ----------------------------------------------------------------- Examples and comparisons with SI prefixes one kibibit 1 Kibit = 2^10 bit = 1024 bit one kilobit 1 kbit = 10^3 bit = 1000 bit one mebibyte 1 MiB = 2^20 B = 1 048 576 B one megabyte 1 MB = 10^6 B = 1 000 000 B one gibibyte 1 GiB = 2^30 B = 1 073 741 824 B one gigabyte 1 GB = 10^9 B = 1 000 000 000 B