• Congratulations to the Class of 2024 on your results!
    Let us know how you went here
    Got a question about your uni preferences? Ask us here

NEED HELP OPTION TOPIC interrelationship of hardware and software (1 Viewer)

Acturial

New Member
Joined
Feb 20, 2012
Messages
19
Gender
Undisclosed
HSC
2014
For IEEE 754 single precision floating-point representation, why do we have to add 127 to the exponent?

Also, the book says that the largest possible number using this approach will have an exponent of 11111110 which is 254 (decimal) and then they SUBTRACT 127 from this... so yea how do we know when to add or subtract 127 from expononent?...

for reference: It's on page 432 on Samuel Davis' book

Thanks
 

hjed

Member
Joined
Nov 10, 2011
Messages
211
Gender
Undisclosed
HSC
2013
The value of the exponent is it's value converted to decimal minus 127. This means it has a range from -127 to 128.
Otherwise it wouldn't be able to have negative exponents. (It doesn't use sign and modulus).

Basically, when converting to IEEE754 add 127. When converting from IEEE754 subtract 127.
 

schlep16

Member
Joined
Nov 17, 2009
Messages
37
Gender
Undisclosed
HSC
2013
We never have to go from a single prescision to a decimal number...i think thats a little to hard, i mean, decimal to single pres is hard enough
 

hjed

Member
Joined
Nov 10, 2011
Messages
211
Gender
Undisclosed
HSC
2013
Are you sure about that, my teacher has certainly made us convert both ways...
 

schlep16

Member
Joined
Nov 17, 2009
Messages
37
Gender
Undisclosed
HSC
2013
hahah im sure.
Shes an absolute retard..
The kid whose topping had to teach us.
Its easy, i know how to do it now...just shes a dumb ass.
Its 100% in the syllabus
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top