Hi,

i understand the ieee 754 representation. but can some one explain why we need to add specifically 127 to the power of 2.


for ex:

5.75 ;

101.110 can be written as 1.01110 * 2 ^ 2

127 +2 = 129 . i.e 10000001

now IEEE 754 of
5.75 is 0 1000 0001 01110 0000 0000 0000 0000 00

thanks,

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.