std::atof or std::stof (c++11) unable to convert properly ("1.24")
<p>I'm a little bit frustrated after I've found this strange atof/stof behavior</p>

<pre><code>double bg = std::stof("1,24");
std::cerr&lt;&lt;"comma: "&lt;&lt;bg&lt;&lt;std::endl;
bg = std::stof("1.24");
std::cerr&lt;&lt;"dot: "&lt;&lt;bg&lt;&lt;std::endl;
</code></pre>

<p>when I change the string format, from comma to dot, this is what happens:</p>

<pre><code>comma: 1.24
dot: 1
</code></pre>

<p>has anyone encountered this problem?
thanks</p>

<p>bart</p>