Created
January 24, 2019 02:34
-
-
Save sailfish009/95f8b4f20e0f5d3a59ce7bdd43dcd143 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://stackoverflow.com/questions/2839390/how-do-i-convert-a-double-into-a-string-in-cwithout-scientific-notation | |
| std::string doubleToStr(double d) | |
| { | |
| std::stringstream ss; | |
| ss << fixed << setprecision(400) << d; | |
| return ss.str(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment