Skip to content · ⁨الانتقال إلى المحتوى⁩

Binary to denary · ⁨ثنائي عشري⁩

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.

العربية

ثنائي إلى عشري

حول رقماً ثنائياً، مكتوباً كسلسلة نصية، إلى عشري (الأساس 10).

اقرأ البتات من اليسار إلى اليمين. كل بت جديد يضاعف القيمة الحالية ثم يضيف نفسه: لـ "101" تذهب القيمة 1، ثم 1 * 2 + 0 = 2، ثم 2 * 2 + 1 = 5. int("1") يحول الحرف إلى الرقم 1.

Log in or create account · ⁨تسجيل الدخول أو إنشاء حساب⁩

IGCSE, A-Level & AP