title: How to convert string to float?
body: <pre><code>#include&lt;stdio.h&gt;
  #include&lt;string.h&gt;
  
  int main() 
  {
      char s[100] ="4.0800" ; 
  
      printf("float value : %4.8f\n" ,(float) atoll(s)); 
      return 0; 
  }
  </code></pre>
  
  <p>I expect the output should be <code>4.08000000</code> whereas I got only <code>4.00000000</code>.</p>
  
  <p>Is there any way to get the numbers after the dot?</p>