title: java equivalent of atof C++
body: <p>I want to convert a c++ (opencv)  method to java (jaavcv)  method </p>
  
  <p>I'm worrying about this line . Is the conversion correct?</p>
  
  <pre><code> float label=atof(entryPath.filename().c_str());
  
   --&gt; float label=Float.parseFloat(child.getName());
  </code></pre>