title: Moving decimal places over in a double
body: <p>So I have a double set to equal 1234, I want to move a decimal place over to make it 12.34</p>
  
  <p>So to do this I multiply .1 to 1234 two times, kinda like this</p>
  
  <pre><code>double x = 1234;
  for(int i=1;i&lt;=2;i++)
  {
    x = x*.1;
  }
  System.out.println(x);
  </code></pre>
  
  <p>This will print the result, "12.340000000000002"</p>
  
  <p>Is there a way, without simply formatting it to two decimal places, to have the double store 12.34 correctly?</p>