Helpful functions and hardware Projects. DigScroll.

Slides:



Advertisements
Similar presentations
NUMBER SYSTEM. How to convert hexadecimal numbers to decimal numbers? 230 Working from right to left, MULTIPLY each position with 8 raised to the power.
Advertisements

Digital to Analog (D/A) Converter Discussion D2.2.
Introduction to Computer Engineering by Richard E. Haskell Number Systems Module M3.1 Sections
Digital to Analog (D/A) Converter Discussion D2.2.
Random Sampling using RAN#. Random Sampling using Ran# The Ran#: Generates a pseudo random number to 3 decimal places that is less than 1. i.e. it generates.
Number System Conversions Lecture L2.2 Section 2.3.
Multiplying Decimals. Multiplying Decimals Notes Multiply as usual, ignoring the decimal points. Count how many total digits are to the right of the decimal.
x two one three.
+ CS 325: CS Hardware and Software Organization and Architecture Integers and Arithmetic.
Converting Fractions we have looked at converting FRACTIONS to DECIMALS. We can also show fractions as PERCENTAGES. PER CENT means OUT OF (per)
Percents, Decimals and Fractions Mrs. Kuznia Math 8 Day 11.
Multiplying and Dividing Decimals by 10, 100, and 1,000
Multiplying Decimals Lesson 1-7 From /
Supplemental Chapter Number Bases
Convert between fractions, decimals and percents.
Converting From decimal to Binary & Hexadecimal to Binary
Fractions * Decimals * Percents The student will learn how to convert various fractions, decimals and percentages.
Computing with Decimals. Adding and Subtracting Decimals.
Write Equivalent Fractions
Part Two: Introducing Percentages and Decimals
Hexadecimal. Overview Hexadecimal (hex) ~ base 16 number system Use 0 through 9 and... A = 10 B = 11 C = 12 D = 13 E = 14 F = 15.
DECIMALBINARY a) b) c) d) e) f) Revision Exercise DECIMALBINARY a) b) c)
Partial Products Multiplication Step by Step 742 X = Expand each number.
SCIENTIFIC NOTATION. Convert to scientific notation       Convert to standard notation  1.92 X 10 3 
Dividing a Decimal by a Decimal. Dividing Whole Numbers 12 ÷ 2 = 120 ÷ 20 = 1200 ÷ 200 = ÷ 2000 = Multiply both 12 and 2 by 10 Multiply.
6.2 Percents. Percent The ratio of a number to 100. Needs to be converted to a fraction or a decimal to compute.
Converting Fractions, Decimals & Percentages. COMMONLY OCCURING VALUES IN PERCENTAGES, DECIMALS & FRACTIONS.
digit x 1 digit 3 DIGIT BY 2 DIGIT Multiplying Decimals 4 digit by 3 digit
Scientific Notation 1. Scientific notation is a way to shorten a large number (makes using it in calculations easier) 2.
CONVERTING TO RATIONAL NUMBERS. Whole numbers are 0, 1, 2, 3, 4, … Integers include all the whole numbers and also their negative versions: …, -3, -2,
5 Minute Check Complete on the back of your homework. Write each percent as a decimal % 2. 15% Write each decimal as a percent
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.
Chapter 5 NUMBER REPRESENTATION AND ARITHMETIC CIRCUITS.
Fraction – decimal Fraction – percent Decimal – fraction Decimal – percent Percent – decimal Percent – fraction.
♣Multiplying Decimals♣
Objectives Evaluate and multiply by powers of 10.
Multiplying Decimals.
Multiplying Decimals by Decimals
Multiplying and dividing decimals
Binary Positional Notation
Multiplying Decimals 3-6 & 3-7.
Convert to a Percent %.
Using the Windows Calculator for quick decimal to binary conversions
Convert Decimal to Binary
Multiplying Decimals Textbook page 120.
Name_____ 6__ Lesson 3 – Multiplying Decimals Nov_
Binary Quiz UIN: ____________________
Number Systems Base 2, 10, 16.
Binary, Octal and Hex Numbers Copyright Thaddeus Konar
CHAPTER 3 - Percent Section 3.1
Multiplying Decimals.
Multiplying Decimals by Decimals
Converting Repeating Decimals to Fractions
Binary, Octal and Hex Numbers Copyright Thaddeus Konar
Multiplying Decimals 3-6 & 3-7.
Hundred Dollar Questions
There are 10 types of people of people in this world…
Multiplying Decimals Lesson 13.2.
DIO2 Board Projects.
Objective - To multiply decimals.
Convert a TERMINATING DECIMAL to a FRACTION
Review Mathematics Skills
© T Madas.
Remember the 10 types of people of people in this world…
Exercise Use long division to find the quotient. 180 ÷ 15.
Converting to Percentages
Converting between Percentages, Decimals and Fractions
Multiplying Decimals Lesson 1-7.
Dividing whole number by a decimal
Part Two: Introducing Percentages and Decimals
Presentation transcript:

Helpful functions and hardware Projects

DigScroll

Random Number Generator

Hex to Decimal d1d1 d2d2 d3d3 d4d4 Decimal h1h1 h2h2 h3h3 h4h4 Hex H2D ( h – d ) 1.Push each decimal digit into stack. \ d 4 d 3 d 2 d LSHIFT and + \ ( d ( d ( d * d 1 ) ) )

Hex to Decimal : H2D ( h - d ) \ convert hex to decimal 0 a UM/MOD \ get & push decimal digit 0 a UM/MOD 0 a UM/MOD \ d 4 d 3 d 2 d 1 4 LSHIFT + \ put in the right place 4 LSHIFT + 4 LSHIFT + ; \ (d (d (d * d 1 ) ) )

HEX : H2D ( h - d )\ convert hex to decimal \ 162E 0 a UM/MOD \ a UM/MOD \ a UM/MOD \ LSHIFT + \ LSHIFT + \ LSHIFT + ;\ 5678 Example: 5678 dec = 162Eh

Decimal to Hex d1d1 d2d2 d3d3 d4d4 Decimal. 7 h1h1 h2h2 h3h3 h4h4 Hex D2H ( d – h) 1.Push each digit into stack. \ d 4 d 3 d 2 d 1 2. Multiply, drop and + \ ( d 4 + a ( d 3 + a ( d 2 + a * d 1 ) ) )

Decimal to Hex : D2H ( d - h ) \ convert decimal to hex 0 10 UM/MOD \ push decimal digit to stack 0 10 UM/MOD 0 10 UM/MOD \ d 4 d 3 d 2 d 1 a UM* drop + \ multiply digit by a a UM* drop + a UM* drop + ; \ ( d 4 + a ( d 3 + a ( d 2 + a * d 1 ) ) )

HEX : D2H ( d - h )\ convert decimal to hex \ UM/MOD \ UM/MOD \ UM/MOD \ a UM* drop + \ a UM* drop + \ a UM* drop + ;\ 162E Example: 5678 dec = 162Eh