Non-decimal Numbers
1
Non-decimal Numbers 1 Non-decimal Numbers We are used to decimal - - PowerPoint PPT Presentation
Non-decimal Numbers 1 Non-decimal Numbers We are used to decimal numbers in our daily life. However, digital computers are based entirely on electrical currents being "on" or "off" . If there is a voltage in a certain
1
computers are based entirely on electrical currents being "on" or "off". If there is a voltage in a certain circuit, then it is considered "on", and if not, it is considered "off". While there are variations in the way this is implemented in computer hardware, the point is that everything in computing is based on the notion that there are only two basic states for a system.
systems, hence all digital computers are based on numbers that are best expressed in powers of two. The result is that there are many instances in which humans refer to computer operations directly in base two, eight, or sixteen, without converting to decimal notation. The most basic of these uses binary notation.
2
the on/off systems mentioned above. Thus, a bit may be considered to be any logical object that can take on values of zero or one, and no others.
possible single-digit numbers: 0 and 1. We use the same place value for binary number that we do in the decimal case. Thus the representation for two already is a two-digit number in binary: 10 = 1x2 + 0x1. Similarly, we can see that a three digit binary number ABC= Ax22 + Bx21 + Cx20. More particularly, we could count from zero to eight in binary as follows: after 0 we have 1 is 1, 2 is 10, 3 is 11, 4 is 100, 5 is 101, 6 is 110, 7 is 111, 8 is 1000.
numbers with four digits, thirty-two with 5 digits, sixty-four with 6 digits, one hundred twenty-eight with seven, and two hundred fifty-six number using 8 binary digits. You can see that the largest block of memory or storage addressable using sixteen bits is 65536.
3
example of the general rule for representations of number in terms of the integer base b. We could write the number n in the base b using the notation nb. Note that: 0b = 0 x b0, 1b = 1 x b0, 2b = 2 x b0, ... , (b- 1)b = (b-1) x b0, 10b = 1 x b1 + 0 x b0, 11b = 1 x b1 + 1 x b0, 12b = 1 x b1 + 2 x b0 , ... , 101b = 1 x b2 + 0 x b1 + 1 x b0
some situations in which the natural division of numbers is into collections of three bits call for octal notation, that is, base eight.
4
numbers, or eight bits worth of information. Since we do not have enough arabic numerals to make sixteen hexadecimal digits, we use letters instead. Thus in "hex" one counts from zero to sixteen as 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F, 10.
5
from binary becomes very easy. For example, each hex digit can be represented by four binary digits. When converting hex to binary, all we have to do is convert one digit at a time. For example
F016 = 1111 00002 A8E16 = 1010 1000 11102 1B8C16 = 0001 1011 1000 11002
representation - the place holding takes care of the rest. (and it is not so easy in base 7!).
F016 = 1111 00002 = 11 110 0002 = 3608 A8E16 = 1010 1000 11102 = 101 010 001 1102 = 52168
6
specifications, ethernet addresses, file permission masks, and lots of
monochromatic subelements in each picture element on the screen (pixel): one that flashes red, one green, and one blue. These subelements are so close together that the eye combines them into a single color such as orange or teal. Typically, each subelement can take an intensity value that is an eight-bit binary number: a value from 0 to 255. These are called the RGB values for the color.
7
takes decimal numbers for the RGB values. For example, <h1 style="color:RGB(0,0,255)"> would give a blue heading. A second way to specify the same colors is as part of a sixtuple of hex digits that correspond to the RGB values: the first two hex digits are the red value, the second two the green value, and the third pair of digits is the blue value. For example, <h1 style="color:#0000FF"> is the same color as that from the previous specification.
8
9
numbers?
10
(http://www.math.wsu.edu/math/kcooper/M300/binarynumbers.ph p, http://www.math.wsu.edu/math/kcooper/M300/colors.php)
https://www.tutorialspoint.com/computer_logical_organization/num ber_system_conversion.htm
11