Bifalgorithm post

How does a computer actually multiply or divide numbers? Here's the binary number. In binary, each column represents a power of 2. So this binary number represents 48. Now this is where it gets interesting. If we shift all these digits one place to the left, the binary number becomes 96. Double our original number. Shift it left two places, it's four times bigger. And shifting right, that's how computers divide by two, four, eight and so on. Logical shifts are the secret behind how computers can multiply and divide so quickly. Want to learn more on this topic? Head over to adecomputerscience.org

How does a computer actually multiply or divide numbers? Here's the binary number. In binary, each column represents a power of 2. So this binary number repres…

Ideas in this flowchart

  • Binary Multiplication and Division
  • Binary Number Representation
  • Powers of 2
  • Example: 48 in Binary
  • Left Shift Operation
  • Shift Left Once: Double
  • Shift Left Twice: Quadruple
  • Right Shift Operation
  • Divide by 2, 4, 8
  • Logical Shifts
  • Efficient Multiplication and Division
  • Further Learning
  • adecomputerscience.org
Feed/

How does a computer actually multiply or divide numbers? Here's the binary number. In binary, each column represents a power of 2. So this binary number represents 48. Now this is where it gets interesting. If we shift all these digits one place to the left, the binary number becomes 96. Double our original number. Shift it left two places, it's four times bigger. And shifting right, that's how computers divide by two, four, eight and so on. Logical shifts are the secret behind how computers can multiply and divide so quickly. Want to learn more on this topic? Head over to adecomputerscience.org

"How does a computer actually multiply or divide numbers?"

👍
0
0 comments0 shares

Sign in to view and post comments.