subject
Physics, 13.07.2019 04:10 mostman077

Floating point numbers are quite interesting in how they are stored, as detailed in this article for 32 bit floating point numbers using the ieee-754 standard. it is conceptually based on base 2 scientific notation: (mantissa) x 2 so there are three parts we need: the sign, the exponent n, and the mantissa, and we need to pack them all into a 32 bit code. engineers being engineers, how this coding is done is 'creative as detailed the linked article the format is: a sign bit; 8 bits for exponent coded as an 8 bit unsigned integer minus 127; followed by 23 bits for the 24 bit mantissa (written in decimal form). in binary decimal, the first digit of the mantissa is always 1, so does not actually have to be written down. so as detailed above, a 32 bit number is written in three segments: sign in 1 bit; 8 bits to code a positive integer (-127) for the exponent; and 23 bits for the 24 bit mantissa. the mantissa is in decimal format, so if list the 24 bits as mo. m (where m. .m23 is written down and mo-1 is implicit). this is equal to mox 2+mx 21+m2x 22+. m23 x 223 1) show that 01 000 0 0 0 01 0 0 1 0 0 1 0 0 0 01 1 0 1 1011 is a fairly accurate representation of pi, explaining how you unpacked the number. [note that multiplying by the 2" part can make a number appear very different in base10 2) pick your favorite physical constant (e. g. speed of light, radius of the earth, mass of the electron, etc.) and code it as a 32 bit float. explain how you did it. 3) in the last homework you built a circuit that would add integers. describe, using words and drawings, how you would build a circuit to add floating point numbers.

ansver
Answers: 1

Another question on Physics

question
Physics, 21.06.2019 15:00
If you were on a jury, do you think you would expect individual characteristics in the evidence? why or why not? what effects might it have if individuals expect to have individuals characteristics presented? this question is for forensic science
Answers: 2
question
Physics, 21.06.2019 19:30
Energy is the ability to do work which measures what
Answers: 3
question
Physics, 21.06.2019 23:30
The most important difference between a wedge and an inclined plane is a. their size b. their shape c. how they are used d. what they are made of
Answers: 1
question
Physics, 22.06.2019 02:30
Gunpowder residue is most likely to show up where on a shooters hands
Answers: 1
You know the right answer?
Floating point numbers are quite interesting in how they are stored, as detailed in this article for...
Questions
Questions on the website: 13722363