title: c++ atof. How to check wrong input?
body: <p>So I use atof to convert my string to double. But I need to know if I get wrong input (like y564 etc.). How can I check it? I need correct number for further actions with it.</p>
  
  <pre><code>double x = atof(s.c_str());
  </code></pre>