How do I convert a double into a string in C++(without scientific notation)? -


How to convert a double into a floating-point string representation without scientific notation in C ++. "Small" samples (effective numbers of any size, such as 1.5 E 200 or E 1 -200):

  0.0000000000000000000000000000000000000000000000000000000000000023897356978234562  

Thanks.

  string Dbltostr (Double D) {stringstream ss; SS & lt; & Lt; Fixed & lt; & Lt; Setreprisn (400) & lt; & Lt; D; Return ss.str (); }  

Comments