Course Hero Logo

10-14-20 notes.py - ' Octal/Hexadecimal Notations -base 8...

Course Hero uses AI to attempt to automatically extract content from documents to surface to you and others so you can study better, e.g., in search results, to enrich docs, and more. This preview shows page 1 out of 1 page.

'''Octal/Hexadecimal Notations-base 8 and base 16 respectivelyEx:-convert 31 from octal to binary-(31)_8-every digit is between 0 and 7-worths (from right) are 1, 8, 64, ...-(31)_8 = 3 * 8 + 1 = 25-(25)_10 = (11001)_2-directly from octal to binary- 6481031011001-always unpack octal digits into 3 bits- 64 32 16 8 4 2 1xxx01 1 0 0 1-from binary to octal-145 = (1001 0001)_2= (010 010 001)_2= (221)_8Hexadecimal-16 = 2^4-digits from 0 ... 15
End of preview. Want to read the entire page?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
N/A
Tags
Binary numeral system, hex prefix

Newly uploaded documents

Show More

Newly uploaded documents

Show More

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture