Données

Objectif 1

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

Nouvel exemple

$$ ({\color{darkgray}{1}}{\color{magenta}{1}}{\color{black}{0}}{\color{orange}{1}}{\color{blue}{0}}{\color{red}{1}})_2 = {\color{red}{1\cdot 2^{0}}}{\color{blue}{+0\cdot 2^{1}}}{\color{orange}{+1\cdot 2^{2}}}{\color{black}{+0\cdot 2^{3}}}{\color{magenta}{+1\cdot 2^{4}}}{\color{darkgray}{+1\cdot 2^{5}}} = {\color{red}{1}}{\color{blue}{+0}}{\color{orange}{+4}}{\color{black}{+0}}{\color{magenta}{+16}}{\color{darkgray}{+32}} = 53 $$

Nouvel exemple

Copyright © Olivier Simon 2011-2022