From 5755e80d4de7e79f8799159692d2a207be971fdd Mon Sep 17 00:00:00 2001 From: tactonbishop Date: Mon, 3 Oct 2022 11:30:04 +0100 Subject: [PATCH] Last Sync: 2022-10-03 11:30:04 --- .../Binary/Binary_units_of_measurement.md | 27 ++++++++++++++----- Hardware/Binary/Hexadecimal_number_system.md | 7 +++++ 2 files changed, 27 insertions(+), 7 deletions(-) create mode 100644 Hardware/Binary/Hexadecimal_number_system.md diff --git a/Hardware/Binary/Binary_units_of_measurement.md b/Hardware/Binary/Binary_units_of_measurement.md index ba62562..8fd0fe8 100644 --- a/Hardware/Binary/Binary_units_of_measurement.md +++ b/Hardware/Binary/Binary_units_of_measurement.md @@ -1,7 +1,7 @@ --- title: Binary units of measurement categories: - - Hardware + - Computer Architecture - Mathematics tags: [bits, binary] --- @@ -41,11 +41,24 @@ A byte allows for a complexity of up to 256 possible states: $2^{8} = 256$ Having established that the core quantity of information is the byte, the convention is to apply the [standard metric prefixes](/Electronics/Physics_of_electricity/Prefixes_for_units_of_electrical_measurement.md) to the byte to establish units: -| Prefix | Symbol | Expression as exponent | Expression as decimal value | English word | -| ------ | ------ | ---------------------- | --------------------------- | ------------ | -| Terra- | T | $10^12$ | 1,000,000,000,000 | trillion | -| Giga- | G | $10^9$ | 1,000,000,000 | billion | -| Mega- | M | $10^6$ | 1,000,000 | million | -| Kilo- | k | $10^3$ | 1,000 | thousand | +| Prefix | Symbol | Expression as base ten exponent | Value | English word | +| ------ | ------ | ------------------------------- | ----------------- | ------------ | +| Terra- | T | $10^{12}$ | 1,000,000,000,000 | trillion | +| Giga- | G | $10^9$ | 1,000,000,000 | billion | +| Mega- | M | $10^6$ | 1,000,000 | million | +| Kilo- | k | $10^3$ | 1,000 | thousand | Hence 2MB is two million bytes, 4kb is four thousand bytes etc. + +Whilst the metric prefixes are conventionally used to refer to aggregates of bytes, they are only approximate values due to the fact that metric is base ten whereas bytes are base two. Hence 1MB is not 1,000,000 bytes it is 1,048,576 bytes. + +This is usually fine as a shorthand but an accurate representation of byte values is as follows: + +| Prefix | Symbol | Expression as base two exponent | Value | English word | +| ------ | ------ | ------------------------------- | ----------------- | ------------ | +| Terra- | T / Ti | $2^{40}$ | 1,099,511,627,776 | trillion | +| Giga- | G / Gi | $2^{30}$ | 1,073,741,824 | billion | +| Mega- | M / Mi | $2^{20}$ | 1,048,576 | million | +| Kilo- | k / Ki | $2^{10}$ | 1,024 | thousand | + +> A special IEEE standard was introduced to distinguish base two within the metric nomenclature: kibi, mebi, gibi etc but this was not widely adopted. The symbols for this are included above as they are sometimes used by Linux programs (Gi, Mi, Ki etc) diff --git a/Hardware/Binary/Hexadecimal_number_system.md b/Hardware/Binary/Hexadecimal_number_system.md new file mode 100644 index 0000000..e093f2c --- /dev/null +++ b/Hardware/Binary/Hexadecimal_number_system.md @@ -0,0 +1,7 @@ +--- +title: Hexadecimal number system +categories: + - Computer Architecture + - Mathematics +tags: [] +---