title: Converting Strings from a .csv file to doubles
body: <p>Having trouble with the converting of strings to doubles.  I've tried using <code>strtod</code>, but that does the same thing. It seems like this should work just find but perhaps using <code>strtok</code> has something to do with it. <code>data[i].calories</code> is a double of course. </p>
  
  <pre><code>data[i].calories = atof(strtok(NULL, ","));
  </code></pre>
  
  <p>It seems to assign either a positive or negative really big number to calories (a double, which means it must be reading the value wrong.</p>
  
  <p>Data Expected: </p>
  
  <blockquote>
    <p>12cx7,23:55:00,->0.968900025,(this could also be a double),0,74,0,2,</p>
  </blockquote>
  
  <p>What it instead actually gets: </p>
  
  <blockquote>
    <p>12cx7,23:55:00,->-537691972,0,0,74,0,2,</p>
  </blockquote>
  
  <p>EDIT:</p>
  
  <p>IM AN IDIOT I WAS DISPLAYING IT AS AN INT PFFFFFFFFFFFFFFFF.</p>