Bifalgorithm post · Brisk · Chapter 1

How do you add binary numbers?

How do you add binary numbers? (Brisk · Chapter 1) — ", hexadecimal, or any other base: you just have to know when to “roll over the odometer,” which in this c…

Ideas in this flowchart

  • La suma en cualquier base depende de saber cuándo hacer que el dígito vuelva a empezar.
  • La regla de llevar el valor al siguiente dígito se aplica en hexadecimal o en cualquier otra base.
  • En binario, el valor máximo de un bit es 1, por lo que el desbordamiento ocurre rápidamente.
  • Ejemplo: 111001₂ + 011010₂.
  • Al sumar dos ceros, el resultado es cero.
  • Al sumar un uno y un cero, el resultado es uno.
  • Al sumar dos unos, el resultado es cero y se lleva uno a la siguiente posición.
  • Al sumar dos unos y un acarreo, el resultado es uno y se lleva uno.
  • La suma mostrada produce 1010011₂.
Feed/

How do you add binary numbers?

Channel

Brisk

1 page

", hexadecimal, or any other base: you just have to know when to “roll over the odometer,” which in this case is almost instantly, since the highest value a bit can hold is 1! Let’s give it a shot: 111001 2 + 011010 2 ? 2 A child could follow the rules: when we add two zeroes, we get zero. Adding a one to a zero gives one. Adding two ones gives zero, and a carry to the next significant digit. And adding two ones plus a carry gives a one and a carry. See if you can follow the flow: 1 1 111001 2 + 011010 2 1 010011 2"

Flowchart preview
Series cover
👍
0
0 comments0 shares

Sign in to view and post comments.