filmov
tv
Lecture 2: Data Representation | Nepali
Показать описание
#DataRepresentation, #FixedPoint, #FloatingPoint
Information that a Computer is dealing with Data:
1. Numeric Data: Numbers( Integer, real)
2. Non-numeric Data: Letters, Symbols
3. Relationship between data elements: Data Structures (Linear Lists, Trees, Rings, etc)
4. Program (Instruction)
Integer Representation:
There is only one way of representing positive numbers (signed magnitude representation) with sign-bit 0 but when number is negative the sign is
represented by 1 and can represented in following three possible ways:
Signed magnitude representation: Complement only the sign bit
Signed 1’s complement representation: Complement all the bits including sign bit
Signed 2’s complement representation: Take the 2's complement of the number
Fixed Point Representation:
A fixed point number has a specific number of bits (or digits) reserved for the integer part (the part to the left of the decimal point) and a specific number of bits reserved for the fractional part (the part to the right of the decimal point). No matter how large or small your number is, it will always use the same number of bits for each portion.
Floating Point Representation:
The floating-point representation of a number has two parts: mantissa and exponent
Mantissa : represents a signed, fixed-point number. May be a fraction or an integer
Exponent: designates the position of the decimal (or binary) point
Floating-point is interpreted to represent a number in the form: m * re. Only the mantissa m and exponent e are physically represented in resisters.
ASCII Representation:
ASCII is the acronym for the American Standard Code for Information Interchange. It is a code for representing 128 English characters as numbers, with each letter assigned a number from 0 to 127.
Most computers use ASCII codes to represent text, which makes it possible to transfer data from one computer to another.
The standard ASCII character set uses just 7 bits for each character.
Information that a Computer is dealing with Data:
1. Numeric Data: Numbers( Integer, real)
2. Non-numeric Data: Letters, Symbols
3. Relationship between data elements: Data Structures (Linear Lists, Trees, Rings, etc)
4. Program (Instruction)
Integer Representation:
There is only one way of representing positive numbers (signed magnitude representation) with sign-bit 0 but when number is negative the sign is
represented by 1 and can represented in following three possible ways:
Signed magnitude representation: Complement only the sign bit
Signed 1’s complement representation: Complement all the bits including sign bit
Signed 2’s complement representation: Take the 2's complement of the number
Fixed Point Representation:
A fixed point number has a specific number of bits (or digits) reserved for the integer part (the part to the left of the decimal point) and a specific number of bits reserved for the fractional part (the part to the right of the decimal point). No matter how large or small your number is, it will always use the same number of bits for each portion.
Floating Point Representation:
The floating-point representation of a number has two parts: mantissa and exponent
Mantissa : represents a signed, fixed-point number. May be a fraction or an integer
Exponent: designates the position of the decimal (or binary) point
Floating-point is interpreted to represent a number in the form: m * re. Only the mantissa m and exponent e are physically represented in resisters.
ASCII Representation:
ASCII is the acronym for the American Standard Code for Information Interchange. It is a code for representing 128 English characters as numbers, with each letter assigned a number from 0 to 127.
Most computers use ASCII codes to represent text, which makes it possible to transfer data from one computer to another.
The standard ASCII character set uses just 7 bits for each character.
Комментарии