Données

Objectif 1

Convertir un nombre de la base 2 à la base 10. $$ (10110011)_2 = (...)_{10} $$

Nouvel exemple

$$ ({\color{olive}{1}}{\color{violet}{0}}{\color{darkgray}{1}}{\color{magenta}{1}}{\color{black}{0}}{\color{orange}{0}}{\color{blue}{1}}{\color{red}{1}})_2 = {\color{red}{1\cdot 2^{0}}}{\color{blue}{+1\cdot 2^{1}}}{\color{orange}{+0\cdot 2^{2}}}{\color{black}{+0\cdot 2^{3}}}{\color{magenta}{+1\cdot 2^{4}}}{\color{darkgray}{+1\cdot 2^{5}}}{\color{violet}{+0\cdot 2^{6}}}{\color{olive}{+1\cdot 2^{7}}} = {\color{red}{1}}{\color{blue}{+2}}{\color{orange}{+0}}{\color{black}{+0}}{\color{magenta}{+16}}{\color{darkgray}{+32}}{\color{violet}{+0}}{\color{olive}{+128}} = 179 $$

Nouvel exemple

Copyright © Olivier Simon 2011-2021