double returning only one precision in java
<p>in my code i am performing division on numbers and storing it in a double variable. but the variable is returning with only one precision. i want to increase the precision how could i do that.</p>

<pre><code>double x;
        for ( int i =0 ; i&lt;10000 ; i++)
        {

            x= w[i] / l[i];
            System.out.println(x);
        }
</code></pre>

<p>in the above code w and l are integer arrays;</p>

<p>i am getting output like</p>

<pre><code>3.0
0.0
1.0
0.0
</code></pre>

<p>i want to increase the precision upto 4 atleast.        </p>
