1 / 18

Binary and other number bases

Binary and other number bases. Base Ten. This is what we are accustomed to. Digits go from 0 – 9 Headings are represented by powers of ten. Other number bases. Bases two - Binary Base five - Q uinary Base eight - Octal Base sixteen - Hexadecimal Bases are named for their “headings.”.

alvis
Download Presentation

Binary and other number bases

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Binary and other number bases

  2. Base Ten • This is what we are accustomed to. • Digits go from 0 – 9 • Headings are represented by powers of ten

  3. Other number bases • Bases two - Binary • Base five - Quinary • Base eight - Octal • Base sixteen - Hexadecimal • Bases are named for their “headings.”

  4. Base Two • Uses only 1’s and 0’s • Headings are in powers of two Headings Binary number

  5. Base Two – converting to decimal Question: Convert 10011002 to a decimal (base ten) number Answer: Headings Binary number = 64 + 8 + 4 = 76

  6. Base Eight • Uses digits from 1 to 7 • Headings are in powers of eights Headings Binary number

  7. Base Eight – converting to decimal Question: Convert 1368 to a decimal (base ten) number Answer: Headings Binary number = 64 + 24 + 6 = 94

  8. Base Sixteen • Uses digits from 1 to 9, and letters from A to F (10 to 15) • Headings are in powers of 16’s Headings Binary number

  9. Base Eight – converting to decimal Question: Convert 2B16 to a decimal (base ten) number Answer: Headings Binary number = 32 + 11 = 43

  10. Review: Binary to Decimal • https://www.youtube.com/watch?v=UUqtjb8WEUs New: Converting a decimal to binary • https://www.youtube.com/watch?v=qWxiXU02ZQM

  11. Binary addition • Basic rules 1 and carry 1 0 and carry 1

  12. Binary addition example Carry’s Answer

  13. Binary addition video • https://www.youtube.com/watch?v=Cqs90dhw_E4

  14. Other binary • BCD – Binary Coded Decimal • Every digit of a number is represented using its 4-bit binary equivalent • The number is not “converted,” instead each digit is given a “code”

  15. 0 = 0000 • 1 = 0001 • 2 = 0010 • 3 = 0011 • 4 = 0100 • 5 = 0101 • 6 = 0110 • 7 = 0111 • 8 = 1000 • 9 = 1001 4 digit codes A negative sign is represented by 1011

  16. BCD exampl • Convert 473 to binary coded decimal • Answer: 4 7 3 = 0100 0111 0011 We can separate the answer by spaces

  17. BCD example 2 • Convert -93 to SIGNED BCD • Answer: - 9 3 = 1111 1001 0011

  18. Try this! • What number does BCD 0101 1001 0001 represent? • Answer: 0101 1001 0001 = 5 9 1 Answer: 591

More Related