一个关于求和的精确度的问题!!请教~~~
To add 0.01+0.02+...+1.00,what order should you use to add the numbers to get better accuracy?
A add 0.01,0.02,...,1.00 in this order to a sum variable whose initial value is 0.
B add 1.00,0.99,...,0.02,0.01 in this order to a sum variable whose initial value is 0.