100 likes | 476 Views
Hexadecimal. Hexadecimal is sometimes used; it’s based on sixteens :. x16. x16. x16. As we move left, the column headings increase by a factor of sixteen. 4096. 256. 16. 1. 0. 1. 2. 3. This number is: 1 x 256 + 2 x 16 + 3 x 1 = 291
E N D
Hexadecimal Hexadecimal is sometimes used; it’s based on sixteens: x16 x16 x16 As we move left, the column headings increase by a factor of sixteen 4096 256 16 1 0 1 2 3 This number is: 1 x 256 + 2 x 16 + 3 x 1 = 291 It’s still two hundred and ninety-one, it’s just written down differently In each column we can have sixteen different digits
Wait a Minute... • How can there be sixteen possible digits in each column, when there are only ten digits? • Hexadecimal uses the digits 0-9 and the letters A-F, so counting would look like this: 0 1 2 3 4 5 6 7 8 9 A B C D E F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 20 21 21 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 32 … etc
Why Use Hexadecimal? • Hexadecimal numbers are shorter than their decimal equivalents, and use fewer digits. • For example, a two digit number can be up to FF, which is 255 • Hexadecimal is most often used to describe colours, especially when editing a web-page or adjusting the palette in your painting program • Colour codes are made up of two digits each for the amount of red, green and blue, in the form #RRGGBB • e.g. #FF0000 is bright red, #FF00FF is purple, etc.