In the Floating point number system $ \ F(10,10,-98,100) \ $ , subtract $ \ \sqrt{1001 } \ $ from $ \ \sqrt{1002} \ $ . How many significant decimal digits are lost in performing the subtraction ?
Answer: In $ F(10,10,-98,100) \ $ ,
$ \sqrt{1001}=31.63858403=0.3163858403 \times 10^2 , \\ \sqrt{1002}=31.65438358 =0.3165438358 \times 10^2 , \ $
Thus,
$ \sqrt{1002}-\sqrt{1001}=(0.3165438358-0.3163858403) \times 10^2 \ =0.0001579955 \times 10^2 \ $
Thus $ \ 3 \ $ significant digits are lost .
I need confirmation of my work .
Am I right ? If not , then how to calculate this ?
Further , how can I rearrange the calculation for better result ?