Skip to content

Instantly share code, notes, and snippets.

@sailfish009
Created January 24, 2019 02:34
Show Gist options
  • Select an option

  • Save sailfish009/95f8b4f20e0f5d3a59ce7bdd43dcd143 to your computer and use it in GitHub Desktop.

Select an option

Save sailfish009/95f8b4f20e0f5d3a59ce7bdd43dcd143 to your computer and use it in GitHub Desktop.
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