Computer Science
Basic
Binary to Decimal
Converts a binary number to decimal.
Formula
Variables
b_iBinary digits
iPosition
Example
1011₂ = 11
Did You Know?
Computers use binary because transistors have two stable states — on and off, 1 and 0.
Converts a binary number to decimal.
1011₂ = 11
Computers use binary because transistors have two stable states — on and off, 1 and 0.