title: How do I convert decimal 75.95 to 7595 in Java?
body: <p>I have a program in which i need to convert <code>double 75.95</code> to normal integer <code>7595</code>. How do I write the actual program?</p>
  
  <p>My code is:</p>
  
  <pre><code>class test5 {
      public static void main(String args[]) {
         double d = 75.95;
         System.out.println("Price before converting = "+d);
         int i = (int)d;
         System.out.println("(float)d = "+i);
      }
  }
  </code></pre>