COMPSCI 1MD3 Lecture Notes - Lecture 9: Octal, Hexadecimal

102 views3 pages

Document Summary

For this code, it would go from leftmost digit to rightmost taking 2 to the power of the length of the list minus the spot that the 1 or 0 is in the list. Method for converting a number into different bases by hand. For converting a number into a series a digits, the remainder of the division with the base gives the least digit; this is repeated with the quotient, until the number fits into a single digit. Read up from the bottom to get the correct number in the base desired. Hexadecimal - base 16 (0,15), where 10-15 is a-f. You need an infinite amount of binary digits. Certain rational numbers cannot be written with infinitely many digits (e. g 1/3 in decimal) A number has a finite binary representation if and only if it can be written as a fraction with a denominator that is a power of 2(k/2^n) for some integer k and some integer n.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions