I was given this question as homework but unfortunately amid this COVID time schools are down and so prof is not too clear in his explanation and the book does not mention anything regarding rounding, only how to convert.
Books: "Fundamentals of Discrete Math for Computer Science" - Tom Jenkyns, Ben Stephenson
Convert 1203.201 from base 10 to base 2, but round your answer: (a) To 6 significant figures and to 12 significant figures. (b) To 3 places after the base point. (c) What is the rounding rule for base 2?
From my calculation, it comes out to be
(1203.201)base10 = (100|1011|0011|.0011|0011|0111)base2
a. 6 sig figures: 100|1100|0000 => since the 7th figure is '1' we round up but it looks to me like it only has 5 sig figures now.
12 sig figures: 100|1011|0011|.0 => this look simple since the 13rd figure is '0'
b. 3 digits after base point: 100|1011|0011|.000 => the 4th digit after the base point is 1 so we round up but once again it doesn't look like 3 digits anymore.
c. I am tempted to put it like for decimal whereas if the digit after is '1' then we round up
Thank you for checking in.
"I was given this question as homework but unfortunately amid this COVID time schools are down and so prof is not too clear in his explanation and the book does not mention anything regarding rounding, only how to convert."
– John Douma Mar 25 '20 at 01:14