title: How to convert a double to long without casting?
body: <p>What is the best way to convert a double to a long without casting?</p>
  
  <p>For example:</p>
  
  <pre><code>double d = 394.000;
  long l = (new Double(d)).longValue();
  System.out.println("double=" + d + ", long=" + l);
  </code></pre>