title: Casting int to double issue in JRockit
body: <p><strong>I have a bea weblogic 8.1 sp5 server running on a JRockit instance with the following java version:</strong></p>
  
  <p>*java -version
  java version "1.4.2_10"
  Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b03)
  BEA JRockit(R) (build R26.3.0-32-58710-1.4.2_10-20060308-2022-linux-ia64, )*</p>
  
  <p><strong>I face an issue when the following code is executed:</strong></p>
  
  <p>int debt = <strong>27003</strong>; //amount in cents;
  System.out.println(((double) debt18 / 100)); //amount in euro</p>
  
  <p>The printed result is <strong>270.03000000000003</strong></p>
  
  <p>I am sure that this is a virtual machine error since it is observable on this particular jrockit machine. </p>
  
  <p>Do you happen to face a similar problem in the past?</p>
  
  <p>Can you please tell me a less error-prone way to pass the wanted value to a double variable,preferably using standard java libraries? </p>