Skip to content · ⁨Saltar al contenido⁩

Binary to denary · ⁨Binario a decimal⁩

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.

Español

Binario a decimal

Convierta un número binario, escrito como cadena de texto, a decimal (base 10).

Lea los bits de izquierda a derecha. Cada nuevo bit duplica el valor acumulado hasta el momento y luego se suma: para "101" el valor avanza de 1, a 1 * 2 + 0 = 2, y luego a 2 * 2 + 1 = 5. int("1") transforma el carácter en el número 1.

Log in or create account · ⁨Iniciar sesión o crear cuenta⁩

IGCSE, A-Level & AP