title: divide long and converting to a double in JAVA
body: <p>Having this piece of code</p>
  
  <pre><code>System.out.println (routeSummary);
  
  long ms = (Long)routeSummary.get("total_distance");
  
  System.out.println (ms);
  
  double kms = (ms / 1000);
  
  System.out.println (kms);
  </code></pre>
  
  <p><code>ms = 19283</code>  but <code>kms = 19.0</code> ??? shouldn't be <code>19.283</code> ??</p>