Converting Between Binary and Decimal PDF

Document Details

CongratulatoryNephrite3972

Uploaded by CongratulatoryNephrite3972

Lehman College, CUNY

Tags

binary decimal number conversion math

Summary

This document provides practice problems and an algorithm for converting between binary and decimal number systems. It includes questions and a description of steps for the conversion process.

Full Transcript

## Do Now: - (a) Decompose 237<sub>10</sub> (base 10) into powers of ten. - (b) Why do we consider binary to be base 2? ## HW#3: Textbook p. 28 #3. Show all work! ## Ex: Convert 117<sub>10</sub> to Base 2 (Binary) ## Discussion: Describe the algorithm for converting a base 10 number into a bas...

## Do Now: - (a) Decompose 237<sub>10</sub> (base 10) into powers of ten. - (b) Why do we consider binary to be base 2? ## HW#3: Textbook p. 28 #3. Show all work! ## Ex: Convert 117<sub>10</sub> to Base 2 (Binary) ## Discussion: Describe the algorithm for converting a base 10 number into a base 2 number. ## Algorithm: 1. Divide the decimal number by 2. Identify the quotient and remainder. 2. Divide the quotient by 2. Identify the quotient and remainder. 3. Repeat step 2 until the quotient is 0. 4. Write out the remainders (they have to be 0 or 1) from the last discovered remainder to the first. 5. This sequence of remainders is your base 10 number converted to binary.

Use Quizgecko on...
Browser
Browser