Computer Science 1033A/B Lecture Notes - Lecture 3: Pixel, Digital Zoom, 2-Step Garage
COMPSCI 1033A/B verified notes
3/12View all
Document Summary
987 is a 3-digit number, but it could also be a 8 digit number (cid:1688)00000987(cid:1689), if you had to represent the numbers with digit holder, you pad the front with zeros. A computer encodes/represents numbers, words, images & sound through binary. Programmers have figured out how to convert our world to something a computer can understand, thus they convert everything to binary. If we have 1 bit we can represent 2 things, if we have can represent 4 things, if we have 3 bits we can represent 8 things. Number of digits actually counts how many numbers there are (0-9 is 1 number, but. The binary increases every time 0 is 0, 1 is 1, 2 is 10, 3 is 11, 4 is 100. The number of bits is how many binary numbers there are (6 is 110 which is 3 bits) 22 items would be 00000022 in decimal representation or 00010110 in binary representation)