I've just finished answering these three questions on my Binary and Logic assignment, and i was wondering is someone can check my answers. I'm not good at this subject...i just made an attempt on these question, which i'm not sure if it's right or not.
Here they are:
1. Use 9 bits for mantissa and 3 bits for exponent to represent the following numbers:
(a) 843434343488
(b) 43553.99786763
(c) 0.00000000487
(d) 0.2345899
My answer:
(a) 843434343488 = 0.843434343
|8|4|3|4|3|4|3|4|3|
(b) 43553.99786763 = 0.4355399786763 x 10^5
|4|3|5|5|4|0|0|7|8|
(c) 0.00000000487 = 0.487 x 10^-8
|0|0|0|0|4|9|0|0|0|
(d) 0.2345899 = 0.2345899 x 10^1
|2|3|4|6|0|0|0|0|1|
2. Use fixed-point notation and 9 bits to multiply and store the following numbers 564.3 and 45.666.
My answer:
564.3 = 5.643 x 10²
45.666 = 4.5666 x 10¹
3. Use 7 bits for mantissa and 2 bits for exponent and Floating-point notation to simplify and store the following:
(a) 355.898 + 4564.56
(b) 456 – 44.3555
My answer:
(a) 355.898 + 4564.56 = 4920.458
= 4920458 x 10^4
|4|9|2|0|4|6|0|
(b) 456 – 44.3555 = 411.6445
= 4116445 x 10^3
|4|1|1|6|4|5|0|
Here they are:
1. Use 9 bits for mantissa and 3 bits for exponent to represent the following numbers:
(a) 843434343488
(b) 43553.99786763
(c) 0.00000000487
(d) 0.2345899
My answer:
(a) 843434343488 = 0.843434343
|8|4|3|4|3|4|3|4|3|
(b) 43553.99786763 = 0.4355399786763 x 10^5
|4|3|5|5|4|0|0|7|8|
(c) 0.00000000487 = 0.487 x 10^-8
|0|0|0|0|4|9|0|0|0|
(d) 0.2345899 = 0.2345899 x 10^1
|2|3|4|6|0|0|0|0|1|
2. Use fixed-point notation and 9 bits to multiply and store the following numbers 564.3 and 45.666.
My answer:
564.3 = 5.643 x 10²
45.666 = 4.5666 x 10¹
3. Use 7 bits for mantissa and 2 bits for exponent and Floating-point notation to simplify and store the following:
(a) 355.898 + 4564.56
(b) 456 – 44.3555
My answer:
(a) 355.898 + 4564.56 = 4920.458
= 4920458 x 10^4
|4|9|2|0|4|6|0|
(b) 456 – 44.3555 = 411.6445
= 4116445 x 10^3
|4|1|1|6|4|5|0|