Données

Objectif 1

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

Nouvel exemple

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

Nouvel exemple

Copyright © Olivier Simon 2011-2022