chap1com
chap1com
base-10 system
base-8 or octal system
base-16 or hexadecimal system
base-2 or binary
Number Representation and Storage in Computers
Integer Representation:-The most straight forward approach to represent
numbers in computer is signed magnitude method.
The first bit represents the sign of the stored number and others used
to store the number.
Example:-we can represent -173 using 16 bits computer memory
=-173
Number Representation and Storage in Computers
Note:-the signed magnitude method described above is not used
to represent integers on conventional computers.
A preferred approach called the 2’s complement technique
directly incorporates the sign into the number’s magnitude rather
than providing a separate bit to represent plus or minus.
Exercise:-represent -173 using 2’s complement with 16 bit memory
compute:- a)19-7 using 8 bit memory
b) -10-4 using 8 bit memory
Number Representation and Storage in Computers
All zeroes which are both to the right of the decimal point and to the right of all non-zero
significant digits are themselves significant.
Do Examples
ASCII Character Set
Computational Efficiency