CIS 2030 Lecture Notes - Lecture 1: 5,6,7,8, Octal, Decimal Mark
222 views3 pages
29 Sep 2017
School
Department
Course
Professor
Document Summary
Binary (base 2) used in machine hardware. Octal, decimal, and hexadecimal is used in software. Decimal (1234)10: 4 * 100 = 4, 3 * 101 = 30, 2 * 102 = 200, 1 * 101 = 1000. 2 symbols {0 , 1} known as bits (1011)2 ?10: 1 * 20 = 1, 1 * 21 = 2, 0 * 22 = 0, 1 * 23 = 8, == (11)10. 8 symbols {0, 1, 2, 3, 4, 5, 6, 7} (107)8 ?10: 7 * 80 = 7, 0 * 81 = 0, 1 * 82 = 64, == (71)10. 16 symbols {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b, c, d, e, f} (10f)16 ?10: 15 * 160 = 15, 0 * 161 = 0, 1 * 162 = 256, == (271)10. Floating point: difficult to implement in hardware, requires its own set of rules that sacrifice logic for usability.