Converting Numbers Between Bases

Slides:



Advertisements
Similar presentations
Multiplying Decimals 1. Multiply 2. Move the decimal.
Advertisements

How to Convert Decimal Numbers to Binary EXAMPLES.
Lesson 5-4 Example Find 19 ÷ 3. Show the remainder. Step 1Rewrite the problem in vertical format.
DATA REPRESENTATION CONVERSION.
Solve the following problem without using a calculator. In the past seven years, the MSA Fundraising Committee has earned $ ; $ ; $ ;
Algebra: Patterns in Decimal Factors, Products & Quotients
4-8 Example 2 Divide. Multiply to make the divisor a whole number.
Converting Numbers Between Bases. While the quotient is not zero…  Divide the decimal number by the new base.  Make the remainder the next digit to.
Number Systems. 2 The total number of allowable symbols in a number system is called the radix or base of the system. Decimal Numbers: radix = 10 (symbols:
Chapter Chapter Goals Know the different types of numbers Describe positional notation.
Chapter 02 Binary Values and Number Systems Nell Dale & John Lewis.
Number System Conversions Lecture L2.2 Section 2.3.
 Binary Binary  Binary Number System Binary Number System  Binary to Decimal Binary to Decimal  Decimal to Binary Decimal to Binary  Octal and Hexadecimal.
Binary Numbers.
division algorithm Before we study divisibility, we must remember the division algorithm. r dividend = (divisor ⋅ quotient) + remainder.
Decimal Division You must learn the rules. Dividing a decimal by a whole number 1.2 ÷ 2 Divisor = 2 Dividend = 1.2 Step 1: move the decimal in the dividend.
Chapter 2- Decimals.
Multiplying and Dividing Decimals by 10, 100, and 1,000
Rational Numbers Jeopardy
Integer Conversion Between Decimal and Binary Bases Conversion of decimal to binary more complicated Task accomplished by –Repeated division of decimal.
The Wonders of Conversion. A number system is a system in which a number is represented. There are potential infinite number systems that can exist (there.
Warm-up (on page ) Answer the following question in complete sentences. Think about multiplying. What is true about the product (answer)? How does it compare.
Chapter 2 Binary Values and Number Systems. 2 2 Natural Numbers Zero and any number obtained by repeatedly adding one to it. Examples: 100, 0, 45645,
When dividing a decimal by a whole number, place the decimal point in the quotient directly above the decimal point in the dividend. Then divide as you.
L4-3 Notes: Dividing Decimals by Whole Numbers
 When dividing a decimal by a whole number, divide as with whole numbers. Then place the decimal in the quotient directly above its place in the dividend.
Lesson 5-4 Example Example 2 Find 14 ÷ 4. Show the remainder. 1.Rewrite the problem in vertical format.
Number systems, Operations, and Codes
Binary Values and Number Systems
Positional Notation 642 in base 10 positional notation is:
Section 2.6 Representation of numbers. Decimal representation (base 10) Given a positive integer X, the decimal representation of X is a string of digits.
Number Base Conversions
EXAMPLE 1 Find a common monomial factor Factor the polynomial completely. a. x 3 + 2x 2 – 15x Factor common monomial. = x(x + 5)(x – 3 ) Factor trinomial.
Divisibility Rules and Finding Factors
Positional Number Systems Decimal, Binary, Octal and Hexadecimal Numbers Wakerly Section
Warm-Up Find the value of each expression − (1.9) ÷ 0.3 Which One Doesn’t Belong? (Include your reasoning…)
Dividing Decimals by a Whole Number 3.6 ÷ 3.
Chapter 2 Number Systems Consists of a set of symbols called digits and a set of relations such as +, -, x, /.
Dividing a Decimal by a Decimal. Dividing Whole Numbers 12 ÷ 2 = 120 ÷ 20 = 1200 ÷ 200 = ÷ 2000 = Multiply both 12 and 2 by 10 Multiply.
Introduction To Number Systems Binary System M. AL-Towaileb1.
Dividing Review SWBAT use division to find quotients; use divisibility rules to predict remainders; estimate quotients; divide whole numbers in thousand.
My Book of Divisibility. THE 2’s Example: 30, 42, 24, 76, 98, Must be an even number Number must end in a 0, 2, 4, 6, or 8.
Unit 1 Rational Numbers Integers.
ECE 2110: Introduction to Digital Systems Number Systems: conversions.
Converting Fractions to Decimals 1.Arrange the numerator as the dividend and the denominator as the divisor. 4 3 ) ) DIVISOR DIVIDEND NUMERATOR.
The Hexadecimal System is base 16. It is a shorthand method for representing the 8-bit bytes that are stored in the computer system. This system was chosen.
ECE 2110: Introduction to Digital Systems Number Systems: conversions.
Binary Values. Numbers Natural Numbers Zero and any number obtained by repeatedly adding one to it. Examples: 100, 0, 45645, 32 Negative Numbers.
Quick Guide to Adding, Subtracting, Multiplying, and Dividing Decimals
♣Multiplying Decimals♣
1. Multiply 2. Move the decimal
Introduction To Number Systems
Dividing larger Numbers
Positional Number Systems Decimal, Binary, Octal and Hexadecimal Numbers Wakerly Section
Chapter 02 Nell Dale & John Lewis.
5 Rational Numbers: Positive and Negative Decimals.
Octal to Decimal Decimal Octal Binary Hexadecimal.
Lecture 3: Binary values and number systems
Convert Decimal to Binary
Chapter R Prealgebra Review Decimal Notation.
Decimal Operations.
Applying Exponent Rules: Scientific Notation
Multiplying & Dividing by Powers of Ten
How is 0.41  10 related to 0.41  100?.
Dividing a whole number to get decimal
Dividing a decimal by a whole number
Multiplying and Dividing Decimals by 10, 100, 1000
Introduction To Number Systems
Dividing whole number by a decimal
Presentation transcript:

Converting Numbers Between Bases

Converting Decimal to Other Bases While the quotient is not zero… Divide the decimal number by the new base. Make the remainder the next digit to the left in the answer. Replace the original dividend with the quotient.

Converting Decimal to Binary Dim quotient, bDigit As Integer Dim bString As String quotient = ‘number to be converted bDigit = 0 bString = VbNullString

Converting Decimal to Binary Do While quotient not = 0 bDigit = quotient Mod 2 bString = CStr(bDigit) & bString quotient = quotient \ 2 Loop

Converting Binary to Decimal Multiply the bit in each position by the power of 2 in that position, and Sum the products.

Converting Binary to Decimal Dim bLen, number, c As Integer Dim bString As String bString = ‘the string to convert bLen = bString.Length-1

Converting Binary to Decimal For c = 0 To bLen number += Conversion.Val(bString(c))_ * 2 ^ (bLen – c) Next