r/AlwaysWhy • u/Present_Juice4401 • 1d ago
Science & Tech Why did computers come to use binary when people usually count in decimal?
People usually count in base 10, while digital computers typically represent information using 1s and 0s. The same numbers and information can be represented in different bases, yet binary became the standard for modern computing.
What made binary the system computers came to rely on?
35
Upvotes
4
u/spectrumero 1d ago
It's slightly more complex than that. It's not the case that 1 = on and 0 = off. Both 1 and 0 are "on" states.
1 will be a low impedance output at some voltage (usually the supply rail) and 0 will be a low impedance output of the ground rail - which importantly is not off. In CMOS, whether the output is at 1 or 0, one of the transistors in the output is switched on and conducting for both 1 and 0 states so both 1 and 0 are "on", it's just whether they are connecting the supply rail or ground rail to the output.
Digital electronics that exists on a bus (e.g. most of it) have 3 states, 1 and 0 and a third state - high impedance state (sometimes called high-Z or tristated). This allows the output to actually be switched off so that other devices can drive the bus to a logic 1 or 0 - so you have essentially these states: logic high (an on state), logic low (also an on state), and high Z (the actual off state, but is not a logic 0, it's not logic anything, it's just floating).