Home > Back-end >  About the accuracy of double means a problem, ask for help!
About the accuracy of double means a problem, ask for help!

Time:04-22



Double sixteen for effective, isn't it? Why not rounded in the output?

CodePudding user response:

Open the float. H file hug,
Floating-point format http://bbs.csdn.net/topics/390676437

CodePudding user response:

Output 3.10112 is not round??

Cout CodePudding user response:

reference 1/f, zhao teacher reply:
open float. H file hug,
Floating-point format http://bbs.csdn.net/topics/390676437
this article and didn't seem to solve the above problems

CodePudding user response:

refer to the second floor SDGHCHJ response:
output 3.10112 is not round??

Cout
the representation of a double effective number is 16, if rounded should not be 3.10113
  • Related