Assignment No # 1: University of Gujrat Hafiz Hayat Campus Department of Mathematics
Assignment No # 1: University of Gujrat Hafiz Hayat Campus Department of Mathematics
Submitted by:
Fatima (19011509-053)
Qurat-ul-Ain (19011509-054)
Tehmina (19011509-055)
Zia-ur-Rehman (19011509-057)
Program:
BS-Mathematics-III
Section:
‘A’
Course title:
Course code:
MATH-206
Ans) Computer always performs given data in the form of bits also called as binary data
represented as 0 and 1. The byte is a unit of digital information that mostly commonly
consists of 8 bits.
Example:
The data can be represented even in terms of decimal. If we have a binary code of 101101 its
representation in decimal will be:
¿ 32+0+8+ 4+ 0+1=45
64-bit:
A 64-bit can access264 addresses. In short any amount of memory greatly than4 GB can be
easily handled by it.
63 0
Signed number:
Numerical value is close to but not actually mathematical base-two. The low-order bit
is 1, next 2, then 4 and so forth as in pure binary. But signed numbers are represented in
two-complement notation. The highest order bit is a sign bit which makes the quantity
negative and every negative umber can be obtained from the corresponding positive value by
inverting all the bits and adding one. This is why integers on a 64-bit machine have the
range−263 ¿263−1 . That 64th bit is being used for sign: 0 mean a positive number or zero, 1 is
a negative number. Some computer languages give you access to unsigned arithmetic which
is straight base 2 with zero and positive numbers only.
Little and big endian are two ways of storing multibyte data-types (int, float etc.). In
little endian machines, last byte of binary representation of the multibyte data-type is stored
first. On the other hand, in big endian machines, first byte of binary representation of the
multibyte data-type is stored first.
¿ big endian( 0× 01 , 0× 23 , …)
01 23 45 67 89 AB CD EF
EF CD AB 89 67 45 23 01
It is a format given by IEEE for representation of floating point number. It occupies 64 bits
in computer memory
11bits 52 bits
Note: The procedure of storing whole number & integers etc is same