> For the complete documentation index, see [llms.txt](https://iot.datalit.de/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://iot.datalit.de/appendix/digital-computers/the-binary-system.md).

# The Binary System

> \[...] any information that can be reduced to a choice among two or more possibilities can be expressed using bits. (Charles Petzold)

## Key Points

* The number system we use in our daily lives is the system to the base 10, or the *decimal system* (*decimus* is Latin for "tenth").
* The fact that we use the decimal system does not mean other systems do not exists. In fact, every other number system to other bases exists as well, and we can convert numbers between different systems.
* The word "decimal" or base ten implies that in that system, we have 10 symbols to represent numbers (0 - 9). Accordingly, the number system to the base 8, which is the *octal system*, has only eight symbols (0 - 7).
* Computers use the binary system (*bīnārius* is Latin for "consisting of two"), which has only two symbols: 0 and 1.
* Regardless of how many symbols we have in a given system, representing numbers in a system follows the same approach. In a system to the base $$n$$, the first digit (also called least significant digit) represents the number $$n^0$$, which is always one. The second stands for $$n^1$$, the one after that for $$n^2$$ and so forth. So the octal number 10 is equal to the decimal number 8: $$1 \times 8^1 + 0 \times 8^0$$, and the octal number 110 would be the decimal number 72: $$1 \times 8^2 + 1 \times 8^1 + 0 \times 8^0$$&#x20;
* We can apply the same approach for the binary system. The binary number 1100 is equivalent to the decimal number 12: $$1 \times 2^3 + 1 \times 2^2 + 0 \times 2^1 + 0 \times 2^0 = 1 \times 8 + 1 \times 4 = 12$$&#x20;

## Material

| Title                                                                    | Link                                                                                                | PDF                                                                                                        |
| ------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| Slides "The Binary System"                                               | [Open](https://docs.google.com/presentation/d/1Zvvbp_m_OCb69UrZl93LKwoYpjcEscbq0ODOHIsp7A4/preview) | [Download](https://docs.google.com/presentation/d/1Zvvbp_m_OCb69UrZl93LKwoYpjcEscbq0ODOHIsp7A4/export/pdf) |
| Video "Number Systems Introduction - Decimal, Binary, Octal, Hexadecimal | [Open](https://www.youtube.com/watch?v=L2zsmYaI5ww)                                                 | -                                                                                                          |
| Text "Our Ten Digits" (8 pages)                                          | -                                                                                                   | -                                                                                                          |
| Text "Alternatives to Ten" (18 pages)                                    | -                                                                                                   | -                                                                                                          |

For students from the [University of Applied Science in Osnabrück](https://www.hs-osnabrueck.de/), all texts are available through our team room.

## References

\[1]  Petzold, Charles. *Code:* The Hidden Language of Computer Hardware and Software. Paperback ed, Microsoft Press, 2000.

\[2]  Scott, J. Clark. But How Do It Know?: The Basic Principles of Computers for Everyone. John C. Scott, 2009.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://iot.datalit.de/appendix/digital-computers/the-binary-system.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
