meta data for this page
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| automation:topics:bit_byte [2025/12/08 13:36] – created vamsan | automation:topics:bit_byte [2025/12/08 14:01] (current) – vamsan | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| == Bit & Byte == | == Bit & Byte == | ||
| - | The **Bit** is the simplest form; it's a signal that can be true or false, with its official English equivalents being //" | + | The **Bit** is the simplest form; it's a signal that can be true or false, with its official English equivalents being //" |
| + | |||
| + | The decimal number system stems from the fact that we have ten fingers, and historically, | ||
| + | |||
| + | A byte is a variable type consisting of 8 bits. The value stored in it must be somewhere between 0 and 255, depending on the bit positions. The example below may help you understand this a little: | ||
| + | |||
| + | {{: | ||
| + | |||
| + | Let's take the bit sequence //" | ||
| + | |||
| + | Therefore, the byte reaches its maximum value when all bits are set to 1. It can be calculated that **2# | ||
| + | |||
| + | In computing, in addition to the base-10 number system, we also use the binary and base-16 number systems. The values described in it are called hexadecimal numbers and are denoted by the prefix “**16# | ||
| + | \\ | ||
| + | 10 = 16#A \\ | ||
| + | 11 = 16#B \\ | ||
| + | 12 = 16#C \\ | ||
| + | 13 = 16#D \\ | ||
| + | 14 = 16#E \\ | ||
| + | 15 = 16#F \\ | ||
| + | |||
| + | |||
| + | If a byte reaches its maximum value, meaning every bit is set to “1”, then: **2# | ||
| + | |||
| + | If we calculate: F, i.e., “15” * 16 + “15” = 255 | ||
| + | |||
| + | In some ways, this can make our lives easier, because if we see a value of “**16# | ||
| + | I would also like to mention the 8-bit, i.e., octal number system, it sometimes still occurs here and there, for example, in the case of numerical symbols, but only rarely, we don’t really use it. | ||
| + | |||
| + | |||
| + | {{page> | ||