Deprecated: Implicit conversion from float-string "1623444657.602" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1623444657.602" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1623444657.602" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1623444657.602" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1623444657.602" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1670651278.872" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1670651278.872" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1670651278.872" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1670651278.872" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1670651278.872" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1672427368.429" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1672427368.429" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1672427368.429" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1672427368.429" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1672427368.429" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1673092702.931" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1673092702.931" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1673092702.931" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1673092702.931" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1673092702.931" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594
GATE CSE 1989 | Question: 1-vi / GATE Overflow for GATE CSE
edited by
3,910 views
14 votes
14 votes
Consider an excess -$50$ representation for floating point numbers with $4$ BCD digit mantissa and $2$ BCD digit exponent in normalised form. The minimum and maximum positive numbers that can be represented are __________ and _____________ respectively.
edited by

1 Answer

Best answer
14 votes
14 votes

In binary we have normalized number of the form $(-1)^{S} \times 1.M \times 2^{E-\text{ Bias}}$ where,

  • $S:$ sign bit 
  • $M :$ Mantissa
  • $E:$ Exponent

Similarly for for $\textsf{Binary Coded Decimal (BCD)}$ numbers the normalized number representation will be $:(-1)^{S} \times 1.M \times 10^{E-\text{ Bias}}$

Here bias is given to be excess - $50$ meaning that we need to subtract $50$ from the base exponent field to get the actual exponent.

So, maximum mantissa value with $4\;\text{BCD}$ digits $= 9999$

Maximum base exponent value with $2\;\text{BCD}$ digits $=  99$

So, maximum actual exponent value possible with $2\;\text{BCD}$ digits $= 99\;\text{- Bias} $

$\qquad \qquad \qquad =  99 - 50$

$\qquad \qquad \qquad  =  49$

So, the magnitude of the largest positive number $=  9.9999 \times 10^{49}$

Similarly, 

To get a minimum positive number, we have to set mantissa $= 0$ and exponent field  $= 0$

So, doing that we get exponent  $=  0 - 50  =  -50$

So, magnitude of minimum positive number $=  1.0000 \times 10^{-50}$

Therefore, maximum positive number $ = 9.9999 \times 10^{49}$

Minimum positive number $= 1.0000 \times 10^{-50}$

edited by

Related questions

738
views
1 answers
1 votes
makhdoom ghaya asked Nov 30, 2016
738 views
Consider the definition of macro $B,$ nested within the definition of a macro $A.$ Can a call to macro $B$ also appear within macro $A?$ If not, why not? If yes, explain ...
7.8k
views
4 answers
31 votes
makhdoom ghaya asked Nov 27, 2016
7,786 views
Which of the following graphs is/are planar?
603
views
0 answers
6 votes
makhdoom ghaya asked Nov 30, 2016
603 views
It is required to implement a stack using bidirectional shift registers providing stack underflow and overflow detection capability.How many shift registers are needed fo...
3.5k
views
3 answers
26 votes
makhdoom ghaya asked Nov 30, 2016
3,523 views
Find values of Boolean variables $A, B, C$ which satisfy the following equations:A+ B = 1AC = BCA + C = 1AB = 0
Total PHP MySQL Other RAM
Time (ms) % Time (ms) % File count Time (ms) % Query count Time (ms) % Amount %
Setup 3.9 2% 2.5 1% 72 1.5 1% 2 0.0 0% 569k 47%
Control 15.6 11% 1.6 1% 5 14.2 10% 12 0.0 0% 390k 32%
View 2.0 1% 2.0 1% 12 0.0 0% 0 0.0 0% 0k 0%
Theme 111.1 80% 4.1 2% 15 107.1 77% 3 0.0 0% 280k 23%
Stats 5.3 3% 0.1 0% 0 5.2 3% 1 0.0 0% 0k 0%
Total 137.8 100% 10.2 7% 104 128.0 92% 18 0.0 0% 1193k 100%