Beruflich Dokumente
Kultur Dokumente
Digital Electronics
Number System Simplification
Digital Electronics
Pioneer Group Institution @ Kozhikode | Kannur | Thrissur| Palakkad | Ernakulam | Kottayam
1
Subtraction in any number system with base b can
be done by the b’s complement method or (b – 1)’s
Number Systems complement method.
In b’s complement subtraction , the carry is ignored
Binary, octal, hexadecimal and decimal number and in (b – 1)’s complement method the carry is
systems are positional weighted, which means that added to the LSD.
the values attached to the symbols depend on their
Negative numbers can be represented in sign
location with respect to the radix point.
magnitude form , or in 1’s complement form, or in
If the base or radix of a number system indicates the 2’s complement form.
number of unique symbols used in that system.
In signed magnitude form, the MSB represent the
The base or radix point separates the integer and sign bit (0 for positive and 1 for negative) and the
fraction parts. remaining bits represent the magnitude of the
The extreme right digit in any number is the LSD and number.
the extreme left digit is the MSD. If b is the base of a number system, (b -1)’s
A decimal number can be converted to a number in complement of a number can be obtained by
any other system with base b by using sum-of- subtracting each digit of number from (b-1) and b’s
weights method or by repeated division by b. In complement of any number can be obtained by
repeated division by b, the remainders are read from adding 1 to its (b-1)’s complement.
bottom to top. The complement of the complement gives the
A decimal fraction can be converted to a fraction in original number.
any other number system with base b by using the The 2’s complement system has a unique zero. But
sum-of-weights method or by repeated the 1’s complement system has two zeros, a positive
multiplication by b. In repeated multiplication by b, 0 (all 0s) and a negative 0 (all 1s).
the integers to the left of the radix point are read
The 1’s complement of a binary number is obtained
from top to bottom. by complementing each bit of the number.
The binary system has two symbols 0 and 1. A binary The 2’s complement of a binary number can be
digit is also called a bit. obtained (a) by finding its 1’s complement and
Each 4-bit binary group is called a nibble. Binary adding 1 to it, or (b) by subtracting the given N-bit
word lengths are multiples of four bits. N
binary number from 2 , or (c) by copying down,
Conversion of octal to hexadecimal and vice versa is
starting from the LSB, all bits up to and including the
simpler via the binary system.
first 1 and then complementing the remaining bits.
The main advantage of octal and hexadecimal
Large numbers can be represented using double
systems is their ease of conversion to and from
precision or triple precision.
binary.
Double precision notation requires two storage
rd
An octal number is 1/3 the length of the
locations (registers) to represent each binary
corresponding binary number and a hex number is
th number.
1/4 the length of the corresponding binary number.
In the floating point notation, both very large and
To convert an octal number into binary, replace each
very small binary numbers can be represented very
octal digit by its 3-bit binary equivalent.
conveniently.
To convert a binary number into octal, starting from
the binary point make groups of 3-bits on either side
BINARY CODES
of the binary point and replace each 3-bit group by
Binary codes may be numeric or alphanumeric
an octal digit.
Alphanumeric codes represent the letters of the
To convert a binary number into hex, starting from
alphabet and decimal numbers sequence of 0s and
the binary point , make groups of 4-bits on either
1s
side of binary point and replace each 4-bit group by a
A sequence of binary digits such as that representing
hex digit.
a decimal digit, is called a word.
WEIGHTED CODE & NON WEIGHTEDCODE
To convert a hex number into binary , replace each Numeric codes used to represent decimal numbers
hex digit by its 4-bit binary equivalent. are called BCD codes.
The hex system is particularly useful for human The BCD codes may be weighted or non-weighted.
communication with computers. The weighted codes obey the position weighting
principle.
In every positively weighted code, one of the weights
must be 1, the second must be either 1 or 2 and the
Operations and Representation of Numbers sum of all the weights must be equal to or greater
The computer method of multiplication requires than 9.
repeated addition. Positively weighted codes are those codes in which
The computer method of division requires successive all the weights assigned to the binary digits is
subtraction. negative.