title: Objective C - How to convert double to long
body: <p>I have a double value 1318611498349.3559, I wanted to convert it to long by doing the following, but I am getting a value of -4506682935000170496, which seems wrong to me.</p>
  
  <pre><code>double dv = ...;
  long lv = (double)dv;
  ...
  </code></pre>
  
  <p>Where can I find some documentation on this?</p>