title: Does ostringstream inserter use current locale?
body: <p>To convert double to string without scientific notation, the suggested way is</p>
  
  <pre><code>std::ostringstream strStream;
  strStream &lt;&lt; std::fixed;
  strStream &lt;&lt; value;
  std::string str = strStream.str();
  </code></pre>
  
  <p>as in
  <a href="https://stackoverflow.com/questions/2335657/prevent-scientific-notation-in-ostream-when-using-with-double">Prevent scientific notation in ostream when using &lt;&lt; with double</a> &amp; <a href="https://stackoverflow.com/questions/332111/how-do-i-convert-a-double-into-a-string-in-c">How do I convert a double into a string in C++?</a></p>
  
  <p>I want to convert double to string without any separator and Dot/Full-stop as the decimal point, i.e. ignoring locale.</p>
  
  <p>From description of <a href="http://www.cplusplus.com/reference/sstream/ostringstream/str/" rel="nofollow noreferrer">ostringstream</a>, <a href="http://en.cppreference.com/w/cpp/io/ios_base/fmtflags" rel="nofollow noreferrer">std::fixed</a> and <a href="http://en.cppreference.com/w/cpp/io/manip/showpoint" rel="nofollow noreferrer">showpoint</a>, I couldn't determine</p>
  
  <ol>
  <li>Whether the decimal point will be in current locale? and</li>
  <li>Whether there will be other separators (e.g. thousand groupings) in the string returned by str() based on locale?</li>
  </ol>
  
  <p>And if its as per current locale, what is the way to override so that - its always Dot/Full-stop as decimal point and there are no grouping?</p>