title: How to divide two long variables in java
body: <p>Sorry for the basic question,
   I have to divide the long variable by another long variable, but it returns 0.
  Can any one help </p>
  
  <pre><code>long a = 3004230;
  long b =  6793368;
  long c = (a/b)*100;
  </code></pre>