Question
2) Convert 123.4567 in IEEE754 format.
Solution Preview
This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.
In order to represent the given decimal number into IEEE754 single point format, we follow this procedure:- We convert separately from decimal into binary both the integer and fraction parts:
123=1111011 in binary
(this is accomplished by continuously division by 2, keep the reminders and read the reminders in reversed order so we can obtain 1111011)
For fraction part:
0.4567 * 2 = 0.9134 0
0.9134*2 = 1.8268 1
0.8268*2 = 1.6536 1
0.6536*2= 1.3072 1
0.3072*2 = 0.6144 0
0.6144*2= 1.2288 1
0.2288*2= 0.4576 0
0.4576*2= 0.9152 0
0.9152*2=1.8304 1
0.8304*2= 1.6608 1...