GATE CSE
First time here? Checkout the FAQ!
x
+1 vote
145 views
IN FLOATING POINT REPRESENTATION WE KNOW THAT BIAS ADDED IS THE MAXIMUM NUMBER WHICH CAN BE REPRESENTED IN 2S COMPLEMENT.

Suppose exponent is represented using 8 bits, so bias added= (2^7)-1=127. But the max negative number representable with 8 bits is -128 and adding 127 will  make it -1, which is certainly negative. So how do we get postitive exponent by biassing in this case??.

It sounds confusing to me. Plz resolve my confusion.
asked in Digital Logic by Veteran (11.5k points) 6 62 146 | 145 views
Range of 2s complement is -128 to 127.

with n bits range of 2s complement is - 2^(n-1) to - 2^(n-1) -1

our only goal is to make every no either 0 or positive..if u have -128 or anything from -128 to 127..just add 128..means add positive of the maximum negative no as bias..

@ sudsho, so bias should be 128 right?? but everywhere it is written one less that is 127 even in the 2016 digital discussion. plz clear this.
it should be 128 only ...else how 127 will take care of -128
what you said sounds completely logical. I also learned that that only. But from internet and everywhere got confused.
if they are using 127 as bias means their maximum negative no possible cant be more than -127..must be some modifications with range has been done..whatever it is we have to add positive to max negative no possible to make every no as 0 or +ve
Thanx @ Sudsho :)

Please log in or register to answer this question.



Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
Top Users Oct 2017
  1. Arjun

    23210 Points

  2. Bikram

    17018 Points

  3. Habibkhan

    6652 Points

  4. srestha

    5864 Points

  5. Debashish Deka

    5430 Points

  6. jothee

    4908 Points

  7. Sachin Mittal 1

    4762 Points

  8. joshi_nitish

    4274 Points

  9. sushmita

    3954 Points

  10. Silpa

    3698 Points


Recent Badges

Regular Juhi Sehgal
Popular Question vineet.ildm
Nice Comment Arjun
100 Club vipul verma
Notable Question jothee
Popular Question jothee
Nice Question shivangi5
Regular rinks5
Notable Question shipra tressa
Regular sasi
27,247 questions
35,056 answers
83,703 comments
33,183 users