The Gateway to Computer Science Excellence
0 votes
Bias formula for floating point representation is 2^k-1

bias formula for IEEE floating point representation is 2^(k-1)-1   Is it right????
in CO and Architecture by | 100 views
bias = (2^(k-1)) -1

Thats how we calculate bias
but when at some places where IEEE is not mentioned then first formula is used .....but at some place latter one is used?

@  yes correct 

1 Answer

0 votes
we do not use 2^(k-1) as bias in IEEE representation due to some exception as in IEEE we have some special values when Exponent=255 so if u will use 128 as bias then we can get exponent upto 127+128= 255 which is already reserved for some special values hence we use 2^(k-1) - 1
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
52,375 questions
60,585 answers
95,407 users