Skip to content · ⁨Passer au contenu⁩

Binary to denary · ⁨Binaire vers décimal⁩

English

Binary to denary

Convert a binary number, written as a string, to denary (base 10).

Read the bits from left to right. Each new bit doubles the value so far and then adds itself: for "101" the value goes 1, then 1 * 2 + 0 = 2, then 2 * 2 + 1 = 5. int("1") turns the character into the number 1.

Français

Binaire vers décimal

Convertir un nombre binaire, écrit sous forme de chaîne, en décimal (base 10).

Lisez les bits de gauche à droite. Chaque nouveau bit double la valeur actuelle puis s'ajoute : pour "101", la valeur devient 1, puis 1 * 2 + 0 = 2, puis 2 * 2 + 1 = 5. int("1") convertit le caractère en nombre 1.

Log in or create account · ⁨Se connecter ou créer un compte⁩

IGCSE, A-Level & AP