00:01
Hello everyone.
00:03
So the question states that a common use of hexadec decimal numerals is to specify colors on web pages.
00:16
Right? now every color has a red, green and a blue component.
00:27
In decimal notation, these are denoted with an ordered triple x, y, z, where x, y and z are the three components.
00:36
Each is an integer from 0 to 255 right an example is given based on that we have to find the notation color code for 238 9 and 603 now to convert the decimal number 14 okay the example for this is given this is an example this is given that this would be coded as e0993f right now we have to find for 14, 20 and 255 the values of x, y and z respectively.
01:31
Right? so to convert the decimal number 14, 20 and 255 to the equivalent hex values, we can divide.
01:40
We have to convert it into hex values.
01:45
What we'll do? we'll divide each decimal number by 16.
01:54
And use the remainder to find the corresponding hex digit.
01:57
The remainder will either be a digit from 0 to 9.
02:02
The remainder will be a digit from 0 to 9 or a letter from a to f such that a is equivalent to 10 in decimal and f is equivalent to 15.
02:21
Right? now, first coming to 14.
02:27
So when 14 is divided by 16, so this gives 0 and a remainder of 14, right? so this corresponds to 0 and here we have 14 means e...