Données

Objectif 1

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

Nouvel exemple

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

Nouvel exemple

Copyright © Olivier Simon 2011-2022