# Hardware - Le binaire

<table id="bkmrk-difficult%C3%A9%2A-%3Cdescrip" style="border-collapse: collapse; width: 100%; height: 46.8px; border-width: 1px; border-style: hidden;"><colgroup><col style="width: 20%;"></col><col style="width: 80%;"></col></colgroup><tbody><tr style="height: 46.8px;"><td style="height: 46.8px; border: 1px groove rgb(52,73,94);">[![image.png](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/H62debutant-png.png)](https://docs.labs404.fr/uploads/images/gallery/2026-07/scaled-1680-/H62debutant-png.png)  
</td><td style="height: 46.8px; border-width: 1px; background-color: rgb(236,202,250); vertical-align: top;">Difficulté : Débutant

Notions : Binaire, base 2

</td></tr></tbody></table>

---

### <span style="color: rgb(35,111,161);">**<span style="text-decoration: underline;">I. Introduction</span>**</span>

> **Il y a 10 types de personnes dans le monde : celles qui savent compter en binaire et les autres.**
> 
>   *- Blague de geek*

Le langage binaire est le langage informatique le plus <span style="color: rgb(132,63,161);">***bas niveau***</span>.

En effet un ordinateur fonctionnant avec du courant électrique, il n'y a que deux états possible pour un bit à l'instant T.

Circuit fermé, présence de courant : <span style="color: rgb(132,63,161);">***1***</span>

Circuit ouvert, absence de courant : <span style="color: rgb(132,63,161);">0</span>

De par ses deux valeurs possible, le binaire est donc un système de calcul en <span style="color: rgb(132,63,161);">***base 2***</span>.

---

### **<span style="text-decoration: underline;"><span style="color: rgb(35,111,161); text-decoration: underline;">II. Les bases de calcul</span>  
</span>**

<p class="callout info">**Information** : Quel que soit le calcul, il est à noter que la première valeur possible est toujours 0 (Zero).  
</p>

#### **<span style="color: rgb(53,152,219);">2.1 Base 10</span>** 

La base 10 est la base naturelle pour l'humain et celle courrament utilisée dans le monde.

De par le fait que les mains humaines disposent de 10 doigts, c'est en effet plus pratique et instinctif pour compter.

on a donc les valeur suivantes possibles :

<details id="bkmrk-valeurs-base-10-0-%3D0"><summary>Valeurs base 10</summary>

0 =00

1 = 01

2 = 02

3 = 03

4 = 04

5 = 05

6 = 06

7 = 07

8 = 08

9 = 09

</details>Une fois la valeur maximum atteinte (09) pour incrémenter au delà, on ajoute une dizaine devant l'unité et on continue ainsi à incrémenter.

10, 20, 30 etc... etc...

#### **<span style="color: rgb(53,152,219);">2.1 Base 2</span>** 

En binaire le principe reste le même qu'en base 10 , on à donc 0, 1 et quand la valeur maximum est atteinte, on incrémente.

<details id="bkmrk-valeurs-base-2-0-%3D0-"><summary>Valeurs base 2</summary>

0 =0

1 = 1

2 = 10

3 = 11

4 = 100

5 = 101

6 = 110

7 = 111

8 = 1000

9 = 1001

etc...

</details>Si de prime abord, cela peut ne pas sembler naturel, il s'agit juste de reproduire la même logique de comptage que la base 10, mais avec seulement 2 valeurs disponible.

---

### **<span style="text-decoration: underline;"><span style="color: rgb(35,111,161); text-decoration: underline;">III. l'Octet</span>  
</span>**

#### <span style="color: rgb(53,152,219);">**3.1 Construction**</span>

Heureusement, pour rendre tout cela plus lisible et car un bit seul ne fait pas sens dès lors qu'il s'agit de compter au delà de 1, on va regrouper ces bits par paquets. Ces packets sont appelés des <span style="color: rgb(132,63,161);">***registres***</span>.

Le registre le plus connu et celui qui sera courrament utilisé est l'<span style="color: rgb(132,63,161);">***octet***</span> (un paquet de 8 bits).

Basé sur ce principe on aura donc la représentation suivante : <span style="color: rgb(132,63,161);">***00000000***</span>

Et là encore, si cela paraît compliqué, il existe un moyen simple et mnémotechnique de se représenter facilement les valeurs en binaire.

En effet, le binaire à une particularité, pour chaque bit que l'on rajoute devant, on double les possibilité, ce qui fait que chaque bit a une valeur différente. Cela s’appelle un <span style="color: rgb(132,63,161);">***Poid***</span> de bit.

Pour se donner une bonne idée, voici la valeur de chaque bit dans un octet :

<table id="bkmrk-128-64-32-16-8-4-2-1" style="border-collapse: collapse; width: 100%; height: 59.6px;"><colgroup><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col></colgroup><tbody><tr style="height: 29.8px;"><td style="background-color: rgb(194,224,244); height: 29.8px;">**128**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**64**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**32**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**16**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**8**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**4**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**2**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**1**  
</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td></tr></tbody></table>

#### **<span style="color: rgb(53,152,219);">3.2 Conversion base 10 / Base 2</span>** 

Dès lors, pour convertir des nombres binaires en base 10 et de base 10 en binaire, cela deviens facile.

Il suffit d'additionner les valeurs de tous les bits égaux à 1. Ainsi,

<span style="color: rgb(132,63,161);">***01101011***</span> par exemple se note :

<table id="bkmrk-128-64-32-16-8-4-2-1-1" style="border-collapse: collapse; width: 100%; height: 59.6px;"><colgroup><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col></colgroup><tbody><tr style="height: 29.8px;"><td style="background-color: rgb(194,224,244); height: 29.8px;">**128**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**64**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**32**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**16**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**8**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**4**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**2**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**1**  
</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">**1**  
</td><td style="height: 29.8px;">**1**  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">**1**  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">**1**  
</td><td style="height: 29.8px;">**1**  
</td></tr></tbody></table>

soit : 64 + 32 + 8 + 2 + 1 = <span style="color: rgb(132,63,161);">***107***</span>.

De la même manière, pour convertir un nombre en base 10 en binaire, il faudra additionner en partant de la droite les valeurs pour arriver à la somme du nombre que l'on veut et passer leurs valeurs à 1.

<span style="color: rgb(132,63,161);">***218***</span> par exemple se note :

<details id="bkmrk-d%C3%A9tail-de-l%27op%C3%A9ratio"><summary>Détail de l'opération</summary>

128 &lt; 218, donc on part avec 128 = 1.

<table id="bkmrk-128-64-32-16-8-4-2-1-2" style="border-collapse: collapse; width: 100%; height: 59.6px;"><colgroup><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col></colgroup><tbody><tr style="height: 29.8px;"><td style="background-color: rgb(194,224,244); height: 29.8px;">**128**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**64**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**32**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**16**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**8**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**4**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**2**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**1**  
</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td></tr></tbody></table>

128 + 64 = 192.

192 &lt; 218, le bit avec une valeur de 64 est donc à 1.

<table id="bkmrk-128-64-32-16-8-4-2-1-3" style="border-collapse: collapse; width: 100%; height: 59.6px;"><colgroup><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col></colgroup><tbody><tr style="height: 29.8px;"><td style="background-color: rgb(194,224,244); height: 29.8px;">**128**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**64**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**32**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**16**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**8**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**4**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**2**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**1**  
</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td></tr></tbody></table>

192+32 = 224.

224 &gt; 218 donc le bit avec une valeur de 32 est à 0. On passe à la valeur suivante.

<table id="bkmrk-128-64-32-16-8-4-2-1-4" style="border-collapse: collapse; width: 100%; height: 59.6px;"><colgroup><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col></colgroup><tbody><tr style="height: 29.8px;"><td style="background-color: rgb(194,224,244); height: 29.8px;">**128**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**64**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**32**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**16**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**8**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**4**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**2**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**1**  
</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px; background-color: rgb(248,202,198);">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td></tr></tbody></table>

192+16 = 208.

208 &lt; 218, donc le bit avec une valeur de 16 est à 1.

<table id="bkmrk-128-64-32-16-8-4-2-1-5" style="border-collapse: collapse; width: 100%; height: 59.6px;"><colgroup><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col></colgroup><tbody><tr style="height: 29.8px;"><td style="background-color: rgb(194,224,244); height: 29.8px;">**128**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**64**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**32**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**16**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**8**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**4**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**2**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**1**  
</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px; background-color: rgb(248,202,198);">0  
</td><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td></tr></tbody></table>

208+8 = 216.

216 &lt; 218, donc le bit avec une valeur de 8 est à 1.

<table id="bkmrk-128-64-32-16-8-4-2-1-6" style="border-collapse: collapse; width: 100%; height: 59.6px;"><colgroup><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col></colgroup><tbody><tr style="height: 29.8px;"><td style="background-color: rgb(194,224,244); height: 29.8px;">**128**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**64**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**32**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**16**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**8**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**4**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**2**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**1**  
</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px; background-color: rgb(248,202,198);">0  
</td><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td></tr></tbody></table>

216+4 = 220.

220 &gt; 218, donc le bit avec une valeur de 4 est à 0.

<table id="bkmrk-128-64-32-16-8-4-2-1-7" style="border-collapse: collapse; width: 100%; height: 59.6px;"><colgroup><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col></colgroup><tbody><tr style="height: 29.8px;"><td style="background-color: rgb(194,224,244); height: 29.8px;">**128**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**64**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**32**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**16**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**8**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**4**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**2**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**1**  
</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px; background-color: rgb(248,202,198);">0  
</td><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px; background-color: rgb(248,202,198);">0  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">0  
</td></tr></tbody></table>

216+2 = 218.

218 = 218. On passe donc notre dernier bit (celui dont la valeur est 2) à 1. La valeur des bits restant à droite sera donc 0.

<table id="bkmrk-128-64-32-16-8-4-2-1-8" style="border-collapse: collapse; width: 100%; height: 59.6px;"><colgroup><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col></colgroup><tbody><tr style="height: 29.8px;"><td style="background-color: rgb(194,224,244); height: 29.8px;">**128**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**64**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**32**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**16**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**8**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**4**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**2**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**1**  
</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px; background-color: rgb(248,202,198);">0  
</td><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px; background-color: rgb(248,202,198);">0  
</td><td style="height: 29.8px; background-color: rgb(191,237,210);">**1**  
</td><td style="height: 29.8px; background-color: rgb(248,202,198);">0  
</td></tr></tbody></table>

</details><table id="bkmrk-128-64-32-16-8-4-2-1-9" style="border-collapse: collapse; width: 100%; height: 59.6px;"><colgroup><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col><col style="width: 12.5%;"></col></colgroup><tbody><tr style="height: 29.8px;"><td style="background-color: rgb(194,224,244); height: 29.8px;">**128**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**64**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**32**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**16**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**8**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**4**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**2**  
</td><td style="background-color: rgb(194,224,244); height: 29.8px;">**1**  
</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">1  
</td><td style="height: 29.8px;">1  
</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">1  
</td><td style="height: 29.8px;">1</td><td style="height: 29.8px;">0  
</td><td style="height: 29.8px;">1  
</td><td style="height: 29.8px;">0  
</td></tr></tbody></table>

<p class="callout info">**Note** : Si l'on additionne toutes les valeurs, le résultat est de 255. Par conséquent, si l'on doit traiter des nombres supérieurs à 255, on ajoutera simplement un octet devant, et l'on poursuivra le tableau de la manière suivante.</p>

<table id="bkmrk-32768-16384-8192-409" style="border-collapse: collapse; width: 100%; height: 95.05px;"><colgroup><col style="width: 51.3095%;"></col><col style="width: 48.6905%;"></col></colgroup><tbody><tr style="height: 66.25px;"><td style="border-style: hidden; height: 66.25px;"><table style="border-collapse: collapse; width: 102.228%;"><colgroup><col style="width: 14.6402%;"></col><col style="width: 14.1439%;"></col><col style="width: 13.1514%;"></col><col style="width: 12.6551%;"></col><col style="width: 12.4069%;"></col><col style="width: 12.1588%;"></col><col style="width: 10.4218%;"></col><col style="width: 9.92556%;"></col></colgroup><tbody><tr><td style="background-color: rgb(236,202,250);">32768  
</td><td style="background-color: rgb(236,202,250);">16384  
</td><td style="background-color: rgb(236,202,250);">8192  
</td><td style="background-color: rgb(236,202,250);">4096  
</td><td style="background-color: rgb(236,202,250);">2048  
</td><td style="background-color: rgb(236,202,250);">1024  
</td><td style="background-color: rgb(236,202,250);">512  
</td><td style="background-color: rgb(236,202,250);">256  
</td></tr></tbody></table>

</td><td style="border-style: hidden; height: 66.25px;"><table style="border-collapse: collapse; width: 100.374%;"><colgroup><col style="width: 12.4533%;"></col><col style="width: 12.4533%;"></col><col style="width: 12.4533%;"></col><col style="width: 12.4533%;"></col><col style="width: 12.4533%;"></col><col style="width: 12.4533%;"></col><col style="width: 12.4533%;"></col><col style="width: 12.4533%;"></col></colgroup><tbody><tr><td style="background-color: rgb(194,224,244);">128  
</td><td style="background-color: rgb(194,224,244);">64  
</td><td style="background-color: rgb(194,224,244);">32  
</td><td style="background-color: rgb(194,224,244);">16  
</td><td style="background-color: rgb(194,224,244);">8  
</td><td style="background-color: rgb(194,224,244);">4  
</td><td style="background-color: rgb(194,224,244);">2  
</td><td style="background-color: rgb(194,224,244);">1  
</td></tr></tbody></table>

</td></tr><tr style="height: 28.8px;"><td class="align-center" style="border-style: hidden; height: 28.8px; vertical-align: top;">*octet 2*  
</td><td class="align-center" style="border-style: hidden; height: 28.8px; vertical-align: top;">*octet 1*  
</td></tr></tbody></table>

#### **<span style="color: rgb(53,152,219);">3.3 Les Échelles de tailles</span>** 

Partant du principe qu'un octet peut stocker toutes sortes de données et que les bits sont donc l'unité de mesure la plus petite, si l'on veut stocker plus de données, on sera donc obligé d'accoler des octets, ou utiliser des registres plus grands.

Au bout d'un moment, il faudra que nos échelles de mesures continuent d'avoir un sens.

Si on empile beaucoup d'octets, on ne va pas continuer à dire, la taille de ce bloc est de 1 228 283 219 233 274 272 octets.

Pour cela, sur le même principe que les tableau de conversion, on va utiliser d'autre échelles.

A l'instar des unités de mesures classiques (gramme, kilogramme) ( centimètre, mètre, kilomètre) il va falloir établir un tableau de conversion pour faire la mise à l'échelle.

Les unités sont donc les suivante :

- **bit** (unité)
- **octet** (8 bits)
- **KiloOctet** ou **Ko** (1024 octets)
- **MegaOctet** ou **Mo** (1024 Ko)
- **GigaOctet** ou **Go** (1024 Mo)
- **TéraOctet** ou **To** (1024 Go)
- **PétaOctet** ou **Po** (1024 To)

<p class="callout info">**Note** : A l'américaine, l'octet se dit <span style="color: rgb(132,63,161);">***Byte***</span>. Un equivalent est donc, le GigaByte ou Mega byte, etc... Notés : Kb, Mb, Gb, etc...</p>

<p class="callout success">**Trivia** : au dessus du péta, il y a l'Exa, le Zeta, le Yotta, Ronna, Quetta, ...</p>

---

### **<span style="text-decoration: underline;"><span style="color: rgb(35,111,161); text-decoration: underline;">IV. Les opérations en binaire</span>  
</span>**

#### <span style="color: rgb(53,152,219);">**4.1 Addition**</span>

Cela fonctionne plus ou moins comme une addition standard, avec les retenues.

Selon les principes suivants :

0 + 0 = 0

(0 + 1 ou 1+0) = 1

1+1 = 10 (équivalent de 2) Donc dans ce cas, l'on pose 0 et on retient 1.

Par exemple : <span style="color: rgb(132,63,161);">***00100101 + 10110010***</span> ( soit 37 + 178 )

<details id="bkmrk-d%C3%A9tail-de-l%27op%C3%A9ratio-1"><summary>Détail de l'opération</summary>

<table style="border-collapse: collapse; width: 100%; height: 795.05px;"><colgroup><col style="width: 47.2426%;"></col><col style="width: 52.7574%;"></col></colgroup><tbody><tr style="height: 172.45px;"><td style="height: 172.45px; border-style: hidden;"><table style="border-collapse: collapse; width: 95.2817%; height: 97px;"><tbody><tr><td style="width: 26.805%;">retenue</td><td style="width: 8.64678%;">  
</td><td style="width: 9.22323%;">  
</td><td style="width: 9.22323%;">  
</td><td style="width: 9.51146%;">  
</td><td style="width: 9.51146%;">  
</td><td style="width: 9.22323%;">  
</td><td style="width: 8.64678%;">  
</td><td style="width: 9.51146%; background-color: rgb(191,237,210);">  
</td></tr><tr><td style="width: 26.805%;">Nombre 1</td><td style="width: 8.64678%;">0</td><td style="width: 9.22323%;">0</td><td style="width: 9.22323%;">1</td><td style="width: 9.51146%;">0</td><td style="width: 9.51146%;">0</td><td style="width: 9.22323%;">1</td><td style="width: 8.64678%;">0</td><td style="width: 9.51146%; background-color: rgb(191,237,210);">1</td></tr><tr><td style="width: 26.805%;">Nombre 2</td><td style="width: 8.64678%;">1</td><td style="width: 9.22323%;">0</td><td style="width: 9.22323%;">1</td><td style="width: 9.51146%;">1</td><td style="width: 9.51146%;">0</td><td style="width: 9.22323%;">0</td><td style="width: 8.64678%;">1</td><td style="width: 9.51146%; background-color: rgb(191,237,210);">0</td></tr><tr><td style="width: 26.805%;">**Total**</td><td style="width: 8.64678%;">  
</td><td style="width: 9.22323%;">  
</td><td style="width: 9.22323%;">  
</td><td style="width: 9.51146%;">  
</td><td style="width: 9.51146%;">  
</td><td style="width: 9.22323%;">  
</td><td style="width: 8.64678%;">  
</td><td style="width: 9.51146%; background-color: rgb(191,237,210);">**1**</td></tr></tbody></table>

</td><td class="align-left" style="vertical-align: middle; height: 172.45px; border-style: hidden;">*On commence par la droite. 1+0 = 1, pas de retenue.*</td></tr><tr style="height: 155.65px;"><td style="border-style: hidden; height: 155.65px;"><table style="border-collapse: collapse; width: 95.5563%;"><colgroup><col style="width: 26.4406%;"></col><col style="width: 8.62193%;"></col><col style="width: 8.91019%;"></col><col style="width: 8.62106%;"></col><col style="width: 8.90933%;"></col><col style="width: 8.90933%;"></col><col style="width: 8.90933%;"></col><col style="width: 11.2085%;"></col><col style="width: 9.19672%;"></col></colgroup><tbody><tr><td style="width: 26.8503%;">retenue</td><td style="width: 8.55668%;">  
</td><td style="width: 9.14679%;">  
</td><td style="width: 9.14679%;">  
</td><td style="width: 9.44185%; background-color: rgb(191,237,210);">  
</td><td style="width: 9.44185%; background-color: rgb(191,237,210);">  
</td><td style="width: 7.96656%; background-color: rgb(191,237,210);">  
</td><td style="width: 9.44185%; background-color: rgb(191,237,210);">  
</td><td style="width: 9.73691%; background-color: rgb(45,194,107);">  
</td></tr><tr><td style="width: 26.8503%;">Nombre 1</td><td style="width: 8.55668%;">0</td><td style="width: 9.14679%;">0</td><td style="width: 9.14679%;">1</td><td style="width: 9.44185%; background-color: rgb(191,237,210);">0</td><td style="width: 9.44185%; background-color: rgb(191,237,210);">0</td><td style="width: 7.96656%; background-color: rgb(191,237,210);">1</td><td style="width: 9.44185%; background-color: rgb(191,237,210);">0</td><td style="width: 9.73691%; background-color: rgb(45,194,107);">1</td></tr><tr><td style="width: 26.8503%;">Nombre 2</td><td style="width: 8.55668%;">1</td><td style="width: 9.14679%;">0</td><td style="width: 9.14679%;">1</td><td style="width: 9.44185%; background-color: rgb(191,237,210);">1</td><td style="width: 9.44185%; background-color: rgb(191,237,210);">0</td><td style="width: 7.96656%; background-color: rgb(191,237,210);">0</td><td style="width: 9.44185%; background-color: rgb(191,237,210);">1</td><td style="width: 9.73691%; background-color: rgb(45,194,107);">0</td></tr><tr><td style="width: 26.8503%;">**Total**</td><td style="width: 8.55668%;">  
</td><td style="width: 9.14679%;">  
</td><td style="width: 9.14679%;">  
</td><td style="width: 9.44185%; background-color: rgb(191,237,210);">**1**</td><td style="width: 9.44185%; background-color: rgb(191,237,210);">0</td><td style="width: 7.96656%; background-color: rgb(191,237,210);">**1**</td><td style="width: 9.44185%; background-color: rgb(191,237,210);">**1**</td><td style="width: 9.73691%; background-color: rgb(45,194,107);">1</td></tr></tbody></table>

</td><td style="vertical-align: middle; border-style: hidden; height: 155.65px;">*0 + 1 = 1, pas de retenue,*

*1 + 0 = 1, pas de retenue,*

*0 + 0 = 0, pas de retenue,*

*0 + 1 = 1, pas de retenue.*

</td></tr><tr style="height: 155.65px;"><td style="border-style: hidden; height: 155.65px;"><table style="border-collapse: collapse; width: 96.1054%;"><colgroup><col style="width: 25.1417%;"></col><col style="width: 8.55981%;"></col><col style="width: 10.5821%;"></col><col style="width: 8.57102%;"></col><col style="width: 10.2852%;"></col><col style="width: 9.42812%;"></col><col style="width: 10.2852%;"></col><col style="width: 9.14242%;"></col><col style="width: 8.57102%;"></col></colgroup><tbody><tr><td style="width: 26.8503%;">retenue</td><td style="width: 8.55668%;">  
</td><td style="width: 9.14679%; background-color: rgb(194,224,244);">**<span style="color: rgb(53,152,219);">1</span>**</td><td style="width: 9.14679%; background-color: rgb(191,237,210);">  
</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">  
</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">  
</td><td style="width: 7.96656%; background-color: rgb(45,194,107);">  
</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">  
</td><td style="width: 9.73691%; background-color: rgb(45,194,107);">  
</td></tr><tr><td style="width: 26.8503%;">Nombre 1</td><td style="width: 8.55668%;">0</td><td style="width: 9.14679%;">0</td><td style="width: 9.14679%; background-color: rgb(191,237,210);">1</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">0</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">0</td><td style="width: 7.96656%; background-color: rgb(45,194,107);">1</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">0</td><td style="width: 9.73691%; background-color: rgb(45,194,107);">1</td></tr><tr><td style="width: 26.8503%;">Nombre 2</td><td style="width: 8.55668%;">1</td><td style="width: 9.14679%;">0</td><td style="width: 9.14679%; background-color: rgb(191,237,210);">1</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">1</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">0</td><td style="width: 7.96656%; background-color: rgb(45,194,107);">0</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">1</td><td style="width: 9.73691%; background-color: rgb(45,194,107);">0</td></tr><tr><td style="width: 26.8503%;">**Total**</td><td style="width: 8.55668%;">  
</td><td style="width: 9.14679%;">  
</td><td style="width: 9.14679%; background-color: rgb(191,237,210);">**<span style="color: rgb(132,63,161);">0</span>**</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">1</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">0</td><td style="width: 7.96656%; background-color: rgb(45,194,107);">1</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">1</td><td style="width: 9.73691%; background-color: rgb(45,194,107);">1</td></tr></tbody></table>

</td><td style="vertical-align: middle; border-style: hidden; height: 155.65px;">*1 + 1 = 10. je pose **<span style="color: rgb(132,63,161);">0</span>** et je retiens **<span style="color: rgb(53,152,219);">1</span>**.*</td></tr><tr style="height: 155.65px;"><td style="border-style: hidden; height: 155.65px;"><table style="border-collapse: collapse; width: 96.6546%;"><colgroup><col style="width: 24.4353%;"></col><col style="width: 8.80807%;"></col><col style="width: 10.2296%;"></col><col style="width: 8.23896%;"></col><col style="width: 9.94459%;"></col><col style="width: 10.2287%;"></col><col style="width: 9.66046%;"></col><col style="width: 8.80807%;"></col><col style="width: 9.37633%;"></col></colgroup><tbody><tr><td style="width: 26.8503%;">retenue</td><td style="width: 8.55668%;">  
</td><td style="width: 9.14679%; background-color: rgb(194,224,244);"><span style="color: rgb(35,111,161);">**1**</span></td><td style="width: 9.14679%; background-color: rgb(45,194,107);">  
</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">  
</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">  
</td><td style="width: 7.96656%; background-color: rgb(45,194,107);">  
</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">  
</td><td style="width: 9.73691%; background-color: rgb(45,194,107);">  
</td></tr><tr><td style="width: 26.8503%;">Nombre 1</td><td style="width: 8.55668%;">0</td><td style="width: 9.14679%; background-color: rgb(236,202,250);"><span style="color: rgb(132,63,161);">0</span></td><td style="width: 9.14679%; background-color: rgb(45,194,107);">1</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">0</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">0</td><td style="width: 7.96656%; background-color: rgb(45,194,107);">1</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">0</td><td style="width: 9.73691%; background-color: rgb(45,194,107);">1</td></tr><tr><td style="width: 26.8503%;">Nombre 2</td><td style="width: 8.55668%;">1</td><td style="width: 9.14679%; background-color: rgb(251,238,184);">**<span style="color: rgb(230,126,35);">0</span>**</td><td style="width: 9.14679%; background-color: rgb(45,194,107);">1</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">1</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">0</td><td style="width: 7.96656%; background-color: rgb(45,194,107);">0</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">1</td><td style="width: 9.73691%; background-color: rgb(45,194,107);">0</td></tr><tr><td style="width: 26.8503%;">**Total**</td><td style="width: 8.55668%;">  
</td><td style="width: 9.14679%; background-color: rgb(191,237,210);">**1**</td><td style="width: 9.14679%; background-color: rgb(45,194,107);">0</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">1</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">0</td><td style="width: 7.96656%; background-color: rgb(45,194,107);">1</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">1</td><td style="width: 9.73691%; background-color: rgb(45,194,107);">1</td></tr></tbody></table>

</td><td style="vertical-align: middle; border-style: hidden; height: 155.65px;">***<span style="color: rgb(35,111,161);">1 </span>**+ <span style="color: rgb(132,63,161);">0 </span>= <span style="color: rgb(22,145,121);">**1** </span>puis <span style="color: rgb(22,145,121);">**1** </span>+ **<span style="color: rgb(230,126,35);">0</span>** = **1**. Pas de retenue*

</td></tr><tr style="height: 155.65px;"><td style="border-style: hidden; height: 155.65px;"><table style="border-collapse: collapse; width: 96.38%;"><colgroup><col style="width: 24.2142%;"></col><col style="width: 9.68413%;"></col><col style="width: 10.257%;"></col><col style="width: 9.40082%;"></col><col style="width: 9.97056%;"></col><col style="width: 9.68569%;"></col><col style="width: 9.11594%;"></col><col style="width: 8.83107%;"></col><col style="width: 9.11594%;"></col></colgroup><tbody><tr><td style="width: 26.8503%;">retenue</td><td style="width: 8.55668%; background-color: rgb(191,237,210);">  
</td><td style="width: 9.14679%; background-color: rgb(45,194,107);">1</td><td style="width: 9.14679%; background-color: rgb(45,194,107);">  
</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">  
</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">  
</td><td style="width: 7.96656%; background-color: rgb(45,194,107);">  
</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">  
</td><td style="width: 9.73691%; background-color: rgb(45,194,107);">  
</td></tr><tr><td style="width: 26.8503%;">Nombre 1</td><td style="width: 8.55668%; background-color: rgb(191,237,210);">0</td><td style="width: 9.14679%; background-color: rgb(45,194,107);">0</td><td style="width: 9.14679%; background-color: rgb(45,194,107);">1</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">0</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">0</td><td style="width: 7.96656%; background-color: rgb(45,194,107);">1</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">0</td><td style="width: 9.73691%; background-color: rgb(45,194,107);">1</td></tr><tr><td style="width: 26.8503%;">Nombre 2</td><td style="width: 8.55668%; background-color: rgb(191,237,210);">1</td><td style="width: 9.14679%; background-color: rgb(45,194,107);">0</td><td style="width: 9.14679%; background-color: rgb(45,194,107);">1</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">1</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">0</td><td style="width: 7.96656%; background-color: rgb(45,194,107);">0</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">1</td><td style="width: 9.73691%; background-color: rgb(45,194,107);">0</td></tr><tr><td style="width: 26.8503%;">**Total**</td><td style="width: 8.55668%; background-color: rgb(191,237,210);">**1**</td><td style="width: 9.14679%; background-color: rgb(45,194,107);">1</td><td style="width: 9.14679%; background-color: rgb(45,194,107);">0</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">1</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">0</td><td style="width: 7.96656%; background-color: rgb(45,194,107);">1</td><td style="width: 9.44185%; background-color: rgb(45,194,107);">1</td><td style="width: 9.73691%; background-color: rgb(45,194,107);">1</td></tr></tbody></table>

</td><td style="vertical-align: middle; border-style: hidden; height: 155.65px;">*enfin, 0 + 1 = 1, pas de retenue.*

</td></tr></tbody></table>

</details><table id="bkmrk-1-nombre-1-0-0-1-0-0" style="border-collapse: collapse; width: 100%; height: 118.7px;"><colgroup><col style="width: 11.0714%;"></col><col style="width: 11.0714%;"></col><col style="width: 11.0714%;"></col><col style="width: 11.0714%;"></col><col style="width: 11.0714%;"></col><col style="width: 11.0714%;"></col><col style="width: 11.0714%;"></col><col style="width: 11.0714%;"></col><col style="width: 11.0714%;"></col></colgroup><tbody><tr style="height: 29.3px;"><td style="border-style: none; height: 29.3px;">  
</td><td style="border-style: none; height: 29.3px;">  
</td><td style="border-style: none; height: 29.3px;">*1*</td><td style="border-style: none; height: 29.3px;">  
</td><td style="border-style: none; height: 29.3px;">  
</td><td style="border-style: none; height: 29.3px;">  
</td><td style="border-style: none; height: 29.3px;">  
</td><td style="border-style: none; height: 29.3px;">  
</td><td style="border-style: none; height: 29.3px;">  
</td></tr><tr style="height: 29.8px;"><td style="border-style: solid; height: 29.8px;">Nombre 1</td><td style="border-style: solid; height: 29.8px;">0</td><td style="border-style: solid; height: 29.8px;">0</td><td style="border-style: solid; height: 29.8px;">1</td><td style="border-style: solid; height: 29.8px;">0</td><td style="border-style: solid; height: 29.8px;">0</td><td style="border-style: solid; height: 29.8px;">1</td><td style="border-style: solid; height: 29.8px;">0</td><td style="border-style: solid; height: 29.8px;">1</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">Nombre 2</td><td style="height: 29.8px;">1</td><td style="height: 29.8px;">0</td><td style="height: 29.8px;">1</td><td style="height: 29.8px;">1</td><td style="height: 29.8px;">0</td><td style="height: 29.8px;">0</td><td style="height: 29.8px;">1</td><td style="height: 29.8px;">0</td></tr><tr style="height: 29.8px;"><td style="background-color: rgb(194,224,244); height: 29.8px;">TOTAL</td><td style="background-color: rgb(194,224,244); height: 29.8px;">1</td><td style="background-color: rgb(194,224,244); height: 29.8px;">1</td><td style="background-color: rgb(194,224,244); height: 29.8px;">0</td><td style="background-color: rgb(194,224,244); height: 29.8px;">1</td><td style="background-color: rgb(194,224,244); height: 29.8px;">0</td><td style="background-color: rgb(194,224,244); height: 29.8px;">1</td><td style="background-color: rgb(194,224,244); height: 29.8px;">1</td><td style="background-color: rgb(194,224,244); height: 29.8px;">1</td></tr></tbody></table>

on a donc <span style="color: rgb(132,63,161);">***00100101 + 10110010***</span> = <span style="color: rgb(132,63,161);">***11010111***</span> ( soit 37 + 178 = 215 )

#### <span style="color: rgb(53,152,219);">**4.2 Soustraction**</span>

La soustraction est un peu plus complexe que l'addition, en effet il va faloir jongler sur les chiffres.

Selon les principes suivants :

0 - 0 = 0

1 - 1 = 0

1 - 0 = 1

0 - 1 = Ne peux pas directement être résolu, nécessite un emprunt.

Par exemple : <span style="color: rgb(132,63,161);">***10110010 -*** </span><span style="color: rgb(132,63,161);">***00100101***</span> ( soit 178 - 37 )

<details id="bkmrk-d%C3%A9tail-de-l%27op%C3%A9ratio-2"><summary>Détail de l'opération</summary>

<table style="border-collapse: collapse; width: 100%; height: 843.575px;"><colgroup><col style="width: 47.2961%;"></col><col style="width: 52.7296%;"></col></colgroup><tbody><tr style="height: 172.812px;"><td style="height: 172.812px; border-style: hidden;"><table style="border-collapse: collapse; width: 95.2116%; height: 97px;"><tbody><tr><td style="width: 26.7119%;">retenue</td><td style="width: 8.61673%;">  
</td><td style="width: 9.19118%;">  
</td><td style="width: 9.19118%;">  
</td><td style="width: 9.47841%;">  
</td><td style="width: 9.47841%;">  
</td><td style="width: 9.19118%;">  
</td><td style="width: 8.61673%; background-color: rgb(191,237,210);"><span style="color: rgb(186,55,42);">0</span></td><td style="width: 9.47841%; background-color: rgb(191,237,210);"><span style="color: rgb(186,55,42);">*10*</span></td></tr><tr><td style="width: 26.7119%;">Nombre 1</td><td style="width: 8.61673%;">1</td><td style="width: 9.19118%;">0</td><td style="width: 9.19118%;">1</td><td style="width: 9.47841%;">1</td><td style="width: 9.47841%;">0</td><td style="width: 9.19118%;">0</td><td style="width: 8.61673%; background-color: rgb(191,237,210);"><s>1</s></td><td style="width: 9.47841%; background-color: rgb(191,237,210);"><s>0</s></td></tr><tr><td style="width: 26.7119%;">Nombre 2</td><td style="width: 8.61673%;">0</td><td style="width: 9.19118%;">0</td><td style="width: 9.19118%;">1</td><td style="width: 9.47841%;">0</td><td style="width: 9.47841%;">0</td><td style="width: 9.19118%;">1</td><td style="width: 8.61673%;">0</td><td style="width: 9.47841%; background-color: rgb(191,237,210);">1</td></tr><tr><td style="width: 26.7119%;">**Total**</td><td style="width: 8.61673%;">  
</td><td style="width: 9.19118%;">  
</td><td style="width: 9.19118%;">  
</td><td style="width: 9.47841%;">  
</td><td style="width: 9.47841%;">  
</td><td style="width: 9.19118%;">  
</td><td style="width: 8.61673%;">  
</td><td style="width: 9.47841%; background-color: rgb(191,237,210);">**1**</td></tr></tbody></table>

</td><td class="align-left" style="vertical-align: middle; height: 172.812px; border-style: hidden;">*On commence par la droite. 0-1, emprunt à gauche.*

*On barre le 1 à gauche on le remplace par un <span style="color: rgb(186,55,42);">0</span>. (car 1-1=0)*

*On ajoute 2 soit <span style="color: rgb(186,55,42);">**10**</span><sub>2 </sub>en remplacement du 0 ce qui donne le calcul 2-1 = 1.*

</td></tr><tr style="height: 156.024px;"><td style="border-style: hidden; height: 156.024px;"><table style="border-collapse: collapse; width: 95.5563%;"><colgroup><col style="width: 26.3484%;"></col><col style="width: 8.30549%;"></col><col style="width: 8.87828%;"></col><col style="width: 8.87828%;"></col><col style="width: 9.16468%;"></col><col style="width: 9.16468%;"></col><col style="width: 8.87828%;"></col><col style="width: 11.4538%;"></col><col style="width: 8.30753%;"></col></colgroup><tbody><tr><td style="width: 26.8503%;">retenue</td><td style="width: 8.61673%;">  
</td><td style="width: 9.19118%;">  
</td><td style="width: 9.19118%;">  
</td><td style="width: 9.47841%;">  
</td><td style="width: 9.47841%;">  
</td><td style="width: 9.19118%;">  
</td><td style="width: 8.61673%; background-color: rgb(191,237,210);"><span style="color: rgb(186,55,42);">0</span></td><td style="width: 9.47841%; background-color: rgb(45,194,107);"><span style="color: rgb(186,55,42);">*10*</span></td></tr><tr><td style="width: 26.8503%;">Nombre 1</td><td style="width: 8.61673%;">1</td><td style="width: 9.19118%;">0</td><td style="width: 9.19118%;">1</td><td style="width: 9.47841%;">1</td><td style="width: 9.47841%;">0</td><td style="width: 9.19118%;">0</td><td style="width: 8.61673%; background-color: rgb(191,237,210);"><s>1</s></td><td style="width: 9.47841%; background-color: rgb(45,194,107);"><s>0</s></td></tr><tr><td style="width: 26.8503%;">Nombre 2</td><td style="width: 8.61673%;">0</td><td style="width: 9.19118%;">0</td><td style="width: 9.19118%;">1</td><td style="width: 9.47841%;">0</td><td style="width: 9.47841%;">0</td><td style="width: 9.19118%;">1</td><td style="width: 8.61673%; background-color: rgb(191,237,210);">0</td><td style="width: 9.47841%; background-color: rgb(45,194,107);">1</td></tr><tr><td style="width: 26.8503%;">**Total**</td><td style="width: 8.61673%;">  
</td><td style="width: 9.19118%;">  
</td><td style="width: 9.19118%;">  
</td><td style="width: 9.47841%;">  
</td><td style="width: 9.47841%;">  
</td><td style="width: 9.19118%;">  
</td><td style="width: 8.61673%; background-color: rgb(191,237,210);">0</td><td style="width: 9.47841%; background-color: rgb(45,194,107);">**1**</td></tr></tbody></table>

</td><td style="vertical-align: middle; border-style: hidden; height: 156.024px;">*0 - 0 = 0 pas d'emprunt.*

</td></tr><tr style="height: 202.691px;"><td style="border-style: hidden; height: 202.691px;"><table style="border-collapse: collapse; width: 96.1054%; height: 119.514px;"><colgroup><col style="width: 25.8883%;"></col><col style="width: 8.5346%;"></col><col style="width: 9.95703%;"></col><col style="width: 9.10357%;"></col><col style="width: 9.67254%;"></col><col style="width: 9.38806%;"></col><col style="width: 9.67254%;"></col><col style="width: 8.5346%;"></col><col style="width: 9.38806%;"></col></colgroup><tbody><tr><td rowspan="2">retenues  
</td><td style="width: 8.61673%;">  
</td><td style="width: 9.19118%;">  
</td><td style="width: 9.19118%;">  
</td><td style="width: 9.47841%;"><span style="color: rgb(186,55,42);">  
</span></td><td style="width: 9.47841%;">  
</td><td style="width: 9.19118%;">  
</td><td style="width: 8.61673%; background-color: rgb(45,194,107);"><span style="color: rgb(186,55,42);">  
</span></td><td style="width: 9.47841%; background-color: rgb(45,194,107);"><span style="color: rgb(186,55,42);">  
</span></td></tr><tr style="height: 29.8785px;"><td style="width: 8.61673%; height: 29.8785px;">  
</td><td style="width: 9.19118%; height: 29.8785px;">  
</td><td style="width: 9.19118%; height: 29.8785px;">  
</td><td style="width: 9.47841%; height: 29.8785px;"><span style="color: rgb(186,55,42);">0</span></td><td style="width: 9.47841%; height: 29.8785px;"><s><span style="color: rgb(186,55,42);">*10*</span></s></td><td style="width: 9.19118%; height: 29.8785px;"> </td><td style="width: 8.61673%; background-color: rgb(45,194,107); height: 29.8785px;"><span style="color: rgb(186,55,42);">0</span></td><td style="width: 9.47841%; background-color: rgb(45,194,107); height: 29.8785px;"><span style="color: rgb(186,55,42);">*10*</span></td></tr><tr style="height: 29.8785px;"><td style="width: 26.8503%; height: 29.8785px;">Nombre 1</td><td style="width: 8.61673%; height: 29.8785px;">1</td><td style="width: 9.19118%; height: 29.8785px;">0</td><td style="width: 9.19118%; height: 29.8785px;">1</td><td style="background-color: rgb(236,202,250); height: 29.8785px;"><s>1</s></td><td style="width: 9.47841%; background-color: rgb(251,238,184); height: 29.8785px;"><s>0</s></td><td style="background-color: rgb(251,238,184); height: 29.8785px;">0</td><td style="width: 8.61673%; background-color: rgb(45,194,107); height: 29.8785px;"><s>1</s></td><td style="width: 9.47841%; background-color: rgb(45,194,107); height: 29.8785px;"><s>0</s></td></tr><tr style="height: 29.8785px;"><td style="width: 26.8503%; height: 29.8785px;">Nombre 2</td><td style="width: 8.61673%; height: 29.8785px;">0</td><td style="width: 9.19118%; height: 29.8785px;">0</td><td style="width: 9.19118%; height: 29.8785px;">1</td><td style="width: 9.47841%; height: 29.8785px;">0</td><td style="width: 9.47841%; height: 29.8785px;">0</td><td style="width: 9.19118%; height: 29.8785px;">1</td><td style="width: 8.61673%; background-color: rgb(45,194,107); height: 29.8785px;">0</td><td style="width: 9.47841%; background-color: rgb(45,194,107); height: 29.8785px;">1</td></tr><tr style="height: 29.8785px;"><td style="width: 26.8503%; height: 29.8785px;">**Total**</td><td style="width: 8.61673%; height: 29.8785px;">  
</td><td style="width: 9.19118%; height: 29.8785px;">  
</td><td style="width: 9.19118%; height: 29.8785px;">  
</td><td style="width: 9.47841%; height: 29.8785px;">  
</td><td style="width: 9.47841%; height: 29.8785px;">  
</td><td style="width: 9.19118%; height: 29.8785px;"> </td><td style="width: 8.61673%; background-color: rgb(45,194,107); height: 29.8785px;">0</td><td style="width: 9.47841%; background-color: rgb(45,194,107); height: 29.8785px;">**1**</td></tr></tbody></table>

</td><td style="vertical-align: middle; border-style: hidden; height: 202.691px;">*0 - 1 non solvable sans emprunts.*

*Pas de 1 adjacent à gauche, on va donc devoir aller chercher le premier disponible pour l'emprunter.*

*on barre le 1 que l'on remplace par* <span style="color: rgb(224,62,45);">0</span> *(1-1=0). Puis on barre le 0 à sa droite pour remplacer par 2 soit <span style="color: rgb(224,62,45);">**10**</span><sub>2</sub>**.***

</td></tr><tr style="height: 156.024px;"><td style="border-style: hidden; height: 156.024px;"><table style="border-collapse: collapse; width: 96.6546%;"><colgroup><col style="width: 25.7599%;"></col><col style="width: 8.49229%;"></col><col style="width: 9.90767%;"></col><col style="width: 9.05844%;"></col><col style="width: 9.62459%;"></col><col style="width: 9.90767%;"></col><col style="width: 9.34152%;"></col><col style="width: 8.49229%;"></col><col style="width: 9.34152%;"></col></colgroup><tbody><tr><td rowspan="2">retenues  
</td><td style="width: 8.61673%;">  
</td><td style="width: 9.19118%;">  
</td><td style="width: 9.19118%;">  
</td><td style="width: 9.47841%;"><span style="color: rgb(186,55,42);">  
</span></td><td style="width: 9.47841%;"><span style="color: rgb(224,62,45);">**1**</span></td><td style="width: 9.19118%; background-color: rgb(191,237,210);"><span style="color: rgb(224,62,45);">*10*</span></td><td style="width: 8.61673%; background-color: rgb(45,194,107);"><span style="color: rgb(186,55,42);">  
</span></td><td style="width: 9.47841%; background-color: rgb(45,194,107);"><span style="color: rgb(186,55,42);">  
</span></td></tr><tr><td style="width: 8.61673%; height: 29.8785px;">  
</td><td style="width: 9.19118%; height: 29.8785px;">  
</td><td style="width: 9.19118%; height: 29.8785px;">  
</td><td style="width: 9.47841%; height: 29.8785px;"><span style="color: rgb(186,55,42);">0</span></td><td style="width: 9.47841%; height: 29.8785px;"><s><span style="color: rgb(186,55,42);">*10*</span></s></td><td style="width: 9.19118%; height: 29.8785px; background-color: rgb(191,237,210);"> </td><td style="width: 8.61673%; background-color: rgb(45,194,107); height: 29.8785px;"><span style="color: rgb(186,55,42);">0</span></td><td style="width: 9.47841%; background-color: rgb(45,194,107); height: 29.8785px;"><span style="color: rgb(186,55,42);">*10*</span></td></tr><tr><td style="width: 26.8503%; height: 29.8785px;">Nombre 1</td><td style="width: 8.61673%; height: 29.8785px;">1</td><td style="width: 9.19118%; height: 29.8785px;">0</td><td style="width: 9.19118%; height: 29.8785px;">1</td><td style="background-color: rgb(236,202,250); height: 29.8785px;"><s>1</s></td><td style="width: 9.47841%; background-color: rgb(251,238,184); height: 29.8785px;"><s>0</s></td><td style="background-color: rgb(191,237,210); height: 29.8785px;"><s>0</s></td><td style="width: 8.61673%; background-color: rgb(45,194,107); height: 29.8785px;"><s>1</s></td><td style="width: 9.47841%; background-color: rgb(45,194,107); height: 29.8785px;"><s>0</s></td></tr><tr><td style="width: 26.8503%; height: 29.8785px;">Nombre 2</td><td style="width: 8.61673%; height: 29.8785px;">0</td><td style="width: 9.19118%; height: 29.8785px;">0</td><td style="width: 9.19118%; height: 29.8785px;">1</td><td style="width: 9.47841%; height: 29.8785px;">0</td><td style="width: 9.47841%; height: 29.8785px;">0</td><td style="width: 9.19118%; height: 29.8785px; background-color: rgb(191,237,210);">1</td><td style="width: 8.61673%; background-color: rgb(45,194,107); height: 29.8785px;">0</td><td style="width: 9.47841%; background-color: rgb(45,194,107); height: 29.8785px;">1</td></tr><tr><td style="width: 26.8503%; height: 29.8785px;">**Total**</td><td style="width: 8.61673%; height: 29.8785px;">  
</td><td style="width: 9.19118%; height: 29.8785px;">  
</td><td style="width: 9.19118%; height: 29.8785px;">  
</td><td style="width: 9.47841%; height: 29.8785px;">  
</td><td style="width: 9.47841%; height: 29.8785px;">  
</td><td style="width: 9.19118%; height: 29.8785px; background-color: rgb(191,237,210);">**1**  
</td><td style="width: 8.61673%; background-color: rgb(45,194,107); height: 29.8785px;">0</td><td style="width: 9.47841%; background-color: rgb(45,194,107); height: 29.8785px;">**1**</td></tr></tbody></table>

</td><td style="vertical-align: middle; border-style: hidden; height: 156.024px;">On continue à décaler. On soustrait 1 de 2 (<span style="color: rgb(224,62,45);">**10**</span><sub>2</sub>), il reste <span style="color: rgb(224,62,45);">**1**</span>.

Enfin, on reporte le 1 à droite et on exécute le calcul.

2 - 1 = 1.

</td></tr><tr style="height: 156.024px;"><td style="border-style: hidden; height: 156.024px;"><table style="border-collapse: collapse; width: 96.38%;"><colgroup><col style="width: 24.1007%;"></col><col style="width: 9.64026%;"></col><col style="width: 10.2073%;"></col><col style="width: 9.35673%;"></col><col style="width: 9.9238%;"></col><col style="width: 9.64026%;"></col><col style="width: 9.07319%;"></col><col style="width: 8.78965%;"></col><col style="width: 9.35673%;"></col></colgroup><tbody><tr><td rowspan="2">retenues  
</td><td style="width: 8.61673%; background-color: rgb(191,237,210);">  
</td><td style="width: 9.19118%; background-color: rgb(191,237,210);">  
</td><td style="width: 9.19118%; background-color: rgb(191,237,210);">  
</td><td style="width: 9.47841%; background-color: rgb(191,237,210);"><span style="color: rgb(186,55,42);">  
</span></td><td style="width: 9.47841%; background-color: rgb(191,237,210);"><span style="color: rgb(224,62,45);">**1**</span></td><td style="width: 9.19118%; background-color: rgb(45,194,107);"><span style="color: rgb(224,62,45);">*10*</span></td><td style="width: 8.61673%; background-color: rgb(45,194,107);"><span style="color: rgb(186,55,42);">  
</span></td><td style="width: 9.47841%; background-color: rgb(45,194,107);"><span style="color: rgb(186,55,42);">  
</span></td></tr><tr><td style="width: 8.61673%; height: 29.8785px; background-color: rgb(191,237,210);">  
</td><td style="width: 9.19118%; height: 29.8785px; background-color: rgb(191,237,210);">  
</td><td style="width: 9.19118%; height: 29.8785px; background-color: rgb(191,237,210);">  
</td><td style="width: 9.47841%; height: 29.8785px; background-color: rgb(191,237,210);"><span style="color: rgb(186,55,42);">0</span></td><td style="width: 9.47841%; height: 29.8785px; background-color: rgb(191,237,210);"><s><span style="color: rgb(186,55,42);">*10*</span></s></td><td style="width: 9.19118%; height: 29.8785px; background-color: rgb(45,194,107);"> </td><td style="width: 8.61673%; background-color: rgb(45,194,107); height: 29.8785px;"><span style="color: rgb(186,55,42);">0</span></td><td style="width: 9.47841%; background-color: rgb(45,194,107); height: 29.8785px;"><span style="color: rgb(186,55,42);">*10*</span></td></tr><tr><td style="width: 26.8503%; height: 29.8785px;">Nombre 1</td><td style="width: 8.61673%; height: 29.8785px; background-color: rgb(191,237,210);">1</td><td style="width: 9.19118%; height: 29.8785px; background-color: rgb(191,237,210);">0</td><td style="width: 9.19118%; height: 29.8785px; background-color: rgb(191,237,210);">1</td><td style="background-color: rgb(191,237,210); height: 29.8785px;"><s>1</s></td><td style="width: 9.47841%; background-color: rgb(191,237,210); height: 29.8785px;"><s>0</s></td><td style="background-color: rgb(45,194,107); height: 29.8785px;"><s>0</s></td><td style="width: 8.61673%; background-color: rgb(45,194,107); height: 29.8785px;"><s>1</s></td><td style="width: 9.47841%; background-color: rgb(45,194,107); height: 29.8785px;"><s>0</s></td></tr><tr><td style="width: 26.8503%; height: 29.8785px;">Nombre 2</td><td style="width: 8.61673%; height: 29.8785px; background-color: rgb(191,237,210);">0</td><td style="width: 9.19118%; height: 29.8785px; background-color: rgb(191,237,210);">0</td><td style="width: 9.19118%; height: 29.8785px; background-color: rgb(191,237,210);">1</td><td style="width: 9.47841%; height: 29.8785px; background-color: rgb(191,237,210);">0</td><td style="width: 9.47841%; height: 29.8785px; background-color: rgb(191,237,210);">0</td><td style="width: 9.19118%; height: 29.8785px; background-color: rgb(45,194,107);">1</td><td style="width: 8.61673%; background-color: rgb(45,194,107); height: 29.8785px;">0</td><td style="width: 9.47841%; background-color: rgb(45,194,107); height: 29.8785px;">1</td></tr><tr><td style="width: 26.8503%; height: 29.8785px;">**Total**</td><td style="width: 8.61673%; height: 29.8785px; background-color: rgb(191,237,210);">**1**</td><td style="width: 9.19118%; height: 29.8785px; background-color: rgb(191,237,210);">0</td><td style="width: 9.19118%; height: 29.8785px; background-color: rgb(191,237,210);">0</td><td style="width: 9.47841%; height: 29.8785px; background-color: rgb(191,237,210);">0</td><td style="width: 9.47841%; height: 29.8785px; background-color: rgb(191,237,210);">**1**</td><td style="width: 9.19118%; height: 29.8785px; background-color: rgb(45,194,107);">**1**  
</td><td style="width: 8.61673%; background-color: rgb(45,194,107); height: 29.8785px;">0</td><td style="width: 9.47841%; background-color: rgb(45,194,107); height: 29.8785px;">**1**</td></tr></tbody></table>

</td><td style="vertical-align: middle; border-style: hidden; height: 156.024px;">*On continue ainsi :*

*1 - 0 = 1*

*0 - 0 = 0*

*1 - 1 = 0*

*1 - 0 = 1*

</td></tr></tbody></table>

</details><table id="bkmrk-1-nombre-1-0-0-1-0-0-1" style="border-collapse: collapse; width: 100%; height: 118.7px;"><colgroup><col style="width: 11.0714%;"></col><col style="width: 11.0714%;"></col><col style="width: 11.0714%;"></col><col style="width: 11.0714%;"></col><col style="width: 11.0714%;"></col><col style="width: 11.0714%;"></col><col style="width: 11.0714%;"></col><col style="width: 11.0714%;"></col><col style="width: 11.0714%;"></col></colgroup><tbody><tr style="height: 29.8px;"><td style="border-style: solid; height: 29.8px;">Nombre 1</td><td style="border-style: solid; height: 29.8px;">1</td><td style="border-style: solid; height: 29.8px;">0</td><td style="border-style: solid; height: 29.8px;">1</td><td style="border-style: solid; height: 29.8px;">1</td><td style="border-style: solid; height: 29.8px;">0</td><td style="border-style: solid; height: 29.8px;">0</td><td style="border-style: solid; height: 29.8px;">1</td><td style="border-style: solid; height: 29.8px;">0</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">Nombre 2</td><td style="height: 29.8px;">0</td><td style="height: 29.8px;">0</td><td style="height: 29.8px;">1</td><td style="height: 29.8px;">0</td><td style="height: 29.8px;">0</td><td style="height: 29.8px;">1</td><td style="height: 29.8px;">0</td><td style="height: 29.8px;">1</td></tr><tr style="height: 29.8px;"><td style="background-color: rgb(194,224,244); height: 29.8px;">TOTAL</td><td style="background-color: rgb(194,224,244); height: 29.8px;">1</td><td style="background-color: rgb(194,224,244); height: 29.8px;">0</td><td style="background-color: rgb(194,224,244); height: 29.8px;">0</td><td style="background-color: rgb(194,224,244); height: 29.8px;">0</td><td style="background-color: rgb(194,224,244); height: 29.8px;">1</td><td style="background-color: rgb(194,224,244); height: 29.8px;">1</td><td style="background-color: rgb(194,224,244); height: 29.8px;">0</td><td style="background-color: rgb(194,224,244); height: 29.8px;">1</td></tr></tbody></table>

on a donc <span style="color: rgb(132,63,161);">***10110010 -*** </span><span style="color: rgb(132,63,161);">***00100101*** </span>= <span style="color: rgb(132,63,161);">***10001101***</span> ( soit 178 - 37 = 141 )

---

### **<span style="text-decoration: underline;">V. Les fonctions binaires</span>**

Les fonctions en binaire ne sont pas des opérations à proprement parler mais le résultat d'un test livré par ce que l'on appelle en informatique et en électronique une porte logique.

#### **5.1 AND (et)**

<table id="bkmrk-0-0-0-0-1-0-1-0-0-1-" style="border-collapse: collapse; width: 100%; height: 155.65px;"><colgroup><col style="width: 16.9048%;"></col><col style="width: 83.0952%;"></col></colgroup><tbody><tr style="height: 155.65px;"><td style="border-style: hidden; height: 155.65px;"><table style="border-collapse: collapse; width: 24.2574%; height: 119.2px;"><colgroup><col style="width: 30.2781%;"></col><col style="width: 35.3674%;"></col><col style="width: 35.3476%;"></col></colgroup><tbody><tr style="height: 29.8px;"><td style="height: 29.8px;">0</td><td style="height: 29.8px;">0</td><td style="height: 29.8px; background-color: rgb(194,224,244);">0</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">0</td><td style="height: 29.8px;">1</td><td style="height: 29.8px; background-color: rgb(194,224,244);">0</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">1</td><td style="height: 29.8px;">0</td><td style="height: 29.8px; background-color: rgb(194,224,244);">0</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">1</td><td style="height: 29.8px;">1</td><td style="height: 29.8px; background-color: rgb(194,224,244);">1</td></tr></tbody></table>

</td><td class="align-left" style="border-style: hidden; height: 155.65px; vertical-align: middle;">*Le résultat de la condition est vrai uniquement si les deux termes sont vrais.*

</td></tr></tbody></table>

#### **5.2 OR (ou)**

<table id="bkmrk-0-0-0-0-1-1-1-0-1-1-" style="border-collapse: collapse; width: 100%; height: 155.65px;"><colgroup><col style="width: 16.9048%;"></col><col style="width: 83.0952%;"></col></colgroup><tbody><tr style="height: 155.65px;"><td style="border-style: hidden; height: 155.65px;"><table style="border-collapse: collapse; width: 24.2574%; height: 119.2px;"><colgroup><col style="width: 30.2781%;"></col><col style="width: 35.3674%;"></col><col style="width: 35.3476%;"></col></colgroup><tbody><tr style="height: 29.8px;"><td style="height: 29.8px;">0</td><td style="height: 29.8px;">0</td><td style="height: 29.8px; background-color: rgb(194,224,244);">0</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">0</td><td style="height: 29.8px;">1</td><td style="height: 29.8px; background-color: rgb(194,224,244);">1</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">1</td><td style="height: 29.8px;">0</td><td style="height: 29.8px; background-color: rgb(194,224,244);">1</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">1</td><td style="height: 29.8px;">1</td><td style="height: 29.8px; background-color: rgb(194,224,244);">1</td></tr></tbody></table>

</td><td class="align-left" style="border-style: hidden; height: 155.65px; vertical-align: middle;">*Le résultat de la condition est vrai si au moins l'un des deux termes est vrai.*

</td></tr></tbody></table>

#### **5.3 XOR (ou exclusif)**

<table id="bkmrk-0-0-0-0-1-1-1-0-1-1--1" style="border-collapse: collapse; width: 100%; height: 155.65px;"><colgroup><col style="width: 16.9048%;"></col><col style="width: 83.0952%;"></col></colgroup><tbody><tr style="height: 155.65px;"><td style="border-style: hidden; height: 155.65px;"><table style="border-collapse: collapse; width: 24.2574%; height: 119.2px;"><colgroup><col style="width: 30.2781%;"></col><col style="width: 35.3674%;"></col><col style="width: 35.3476%;"></col></colgroup><tbody><tr style="height: 29.8px;"><td style="height: 29.8px;">0</td><td style="height: 29.8px;">0</td><td style="height: 29.8px; background-color: rgb(194,224,244);">0</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">0</td><td style="height: 29.8px;">1</td><td style="height: 29.8px; background-color: rgb(194,224,244);">1</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">1</td><td style="height: 29.8px;">0</td><td style="height: 29.8px; background-color: rgb(194,224,244);">1</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">1</td><td style="height: 29.8px;">1</td><td style="height: 29.8px; background-color: rgb(194,224,244);">0</td></tr></tbody></table>

</td><td class="align-left" style="border-style: hidden; height: 155.65px; vertical-align: middle;">*Le résultat de la condition est vrai seulement si l'un des deux terme est vrai.*

</td></tr></tbody></table>

<p class="callout success">**Trivia** : c'est ce système là qui va être utilisé pour calculé des bits de parité. Dans les matrices RAID par exemple.</p>

Pour aller plus loin : [Wikipedia | Tables de vérité](https://fr.wikipedia.org/wiki/Table_de_v%C3%A9rit%C3%A9)

---

### **<span style="text-decoration: underline;">VI. Conclusion</span>**

Au sein de l'ordinateur, tout est binaire. De la donnée écrite sur les supports de stockage, jusqu'à l'information transitant par le réseau, en passant par les opérations processeurs et le contenu de la mémoire.

Nous manipulons juste de moins en moins ce type de contenu au fil de l'évolution des langages informatiques et de programmation.

Mais il est cependant important de comprendre (au moins en théorie) comment fonctionne l'informatique sur sa couche la plus basique.