positional numbering system
base, r
- determined by the position of the digit
radix point
separates the integer part of a number from the fractional part
expansion method
method of calculating an equivalent decimal value from a base-r number
binary number system
counting in base-r
each time:
carry
if the least significant digit reaches the base, r, it is reset to zero and a carry is generated into the next LSD
Binary bit addition
bits can be added, subtracted, multiplied and divided
only digits 0 and 1 are allowed in the results
octal number system
base-8 number system
alternative to working with long binary numbers
uses digits 0 through 7
(2)^3 = 8 so three binary digits can be represented by a singe octal
hexadecimal number system
converting base 10 numbers to base-r
radix (base) complement, R(M)
diminished radix complement
for example, if working in base-10 R(M) is the ten’s complement and one less than this is the nine’s complement
computer representation of negative numbers
1’s complement
2’s complement
for an N-bit binary integer, M, the 2’s complement is
R(M) = 2^N - M
An alternative way to calculate this to take the 1’s complement and add 1.
21= 0001 0101 -21= 1110 1011
Boolean algebra
a system for representing and evaluating logical variables (Boolean variable) and their combinations
logic gate
truth tables
represents results of Boolean function for all combinations of the input variables
order of operations
binary digit
also known as bit, or scalar
binary scalar, B
n-tuple
cell
- often referred to as a word or byte