Software Testing Homework1: An error in my past program
My most impressive error in the past is that in the study of C#, the teacher let us test the accuracy of C# calculation, and I found the result of e-26/10-8 was zero. I thought that if this error occurs in the program, there would be a huge mistake or even loss. Luckily, with the teacher's tips, I quickly found the reason, which was that the value range of the computer was 2-32 to 232-1, so e-26 defaulted to 0, resulting in the result becomes 0.
For calculating accurate value, I found a good ideal, that was we could calculate e-13/10-4 firstly, then squared. And finally I found the accurate result is 5.10908*10-4.

浙公网安备 33010602011771号