Computer Science, asked by pshiva1494, 1 year ago

What are fixed point numbers in a computer system? Why are negative fixed point numbers represented in complement form? Give examples of fixed point numbers (positive as well as negative) assuming the size of the notation to be 8 bits (including sign bit)?

Answers

Answered by topanswers
3

Fixed point numbers: A number representation that is a real data type for a number that has a fixed number of digits after the radix point is called a fixed point number.

A fixed-point data type is defined by the length of the word in bits, the position of the radix point and stating whether it is signed or unsigned.

It can also be seen as a more complicated floating-point number representation.

Negative fixed point numbers represented in complement form because, for a scaling factor whose exponent is negative, the number represented is smaller than the integer number that was stored and the number being represented has a fractional component. So, it has to be complemented.

Hence, negative fixed point numbers represented in complement form.

Eg:

8-bit signed binary number 000110112 that is stored in memory using 8-bits of storage.

Firstly, let us also assume this number was stored as a signed fixed-point representation with a scale factor of 22.

As the scale factor is greater than 1,  after translation the bits stored in memory into the number we are actually representing, we move the radix point two places to the right.  

This gives 11011002

Secondly, the same binary number in memory but this time we’ll assume that it is stored as a signed fixed-point representation with a scale factor of 2-3.  As the exponent is negative we move the radix point three places to the left.

This gives 00011.0112

Answered by Sidyandex
1

A fixed point number system has limited numbers in it, where the decimal point has to be in a fixed location.

Negative numbers are formed with two complements of one positive value.

As it is done for the integers.

A positive example of fixed point number is 5.0 x 10 power 2.

The negative example of fixed point number is 1.11 x 2 power -1

Similar questions