Home > Back-end >  C c doule type data carrying out accumulative output completely wrong how to solve the... ah
C c doule type data carrying out accumulative output completely wrong how to solve the... ah

Time:09-27

Put a STR characters such as "2.5" transformed into type double maxW
Double maxW=atof (STR) c_str ());


And now it is necessary to repeatedly maxW accumulation (hundreds of thousands of times) how to get accurate results, not to come out, please comment, (not to say that the output precision, it is how to avoid in the process of calculation)

CodePudding user response:

  • Related