recategorized by
5,329 views
22 votes
22 votes

The exponent of a floating-point number is represented in excess-$\text{N}$ code so that:

  1. The dynamic range is large.
  2. The precision is high.
  3. The smallest number is represented by all zeros.
  4. Overflow is avoided.
recategorized by

2 Answers

Best answer
30 votes
30 votes
Answer : C) The smallest number is represented by all zeros.

In computer system, a floating-point number is represented as S E M, i.e. using Sign bit, Exponent bits and Mantissa bits.

The exponent can be a positive as well as a negative number. So to represent negative number we can use $1's$ complement or $2's$ complement. Better choice would be $2's$ complement.

If we use $2's$ complement system to represent exponent, then problem will arise while comparing $2$ floating point numbers. For example, if exponent of the $2$ numbers are negative then for comparing we will have to convert them into positive number.

So, to avoid this extra work, excess-N code is used so that all exponent can be represented in positive numbers, starting with $0$.
edited by
8 votes
8 votes


If we eliminate the options then we are left with option (C).
And (C) is the correct answer because to represent the smallest number we just only need to put all 0's in the exponent field, so to get the actual exponent we need to subtract N from 0 only.

but if we use 2's complement' 1's complement/ sign magnitude we have that convert that the -ve exponent, while in Excess-N we just need to put all exponent bits as 0's.

edited by
Answer:

Related questions

12 votes
12 votes
4 answers
1
21 votes
21 votes
4 answers
3
makhdoom ghaya asked Nov 18, 2016
7,790 views
A $32$-bit floating-point number is represented by a $7$-bit signed exponent, and a $24$-bit fractional mantissa. The base of the scale factor is $16,$The range of the ex...
13 votes
13 votes
2 answers
4
go_editor asked Jun 15, 2016
4,911 views
Which of the given number has its $\text{IEEE - 754}$ $32$-bit floating point representation as $\text{(0 10000000 110 0000 0000 0000 0000 0000)}$$2.5$$3.0$$3.5$$4.5$