Get minus (-)double value upto 6 point
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/6554569/using-double-up-to-two-decimal-places">Using double up to two decimal places</a>  </p>
</blockquote>



<p>Hi i want to convert double  value upto 6 point something like if value is                                             </p>

<pre><code>  -1.00005522000
</code></pre>

<p>it should be converted and resulted into</p>

<pre><code>  -1.000055
</code></pre>

<p>i know there are lots of solution but still i could not getting the value</p>

<p>if i use value like </p>

<pre><code>  : -1.79769313486231E308
</code></pre>

<p>the resulted value become </p>

<pre><code>  -9.22337203668547
</code></pre>

<p>i have used reference like</p>

<p><a href="http://www.roseindia.net/java/beginners/RoundTwoDecimalPlaces.shtml" rel="nofollow">http://www.roseindia.net/java/beginners/RoundTwoDecimalPlaces.shtml</a></p>

<p><a href="http://stackoverflow.com/questions/9528904/how-to-print-upto-two-decimal-places-in-java-using-string-builder">How to print upto two decimal places in java using string builder?</a></p>

<p><a href="http://stackoverflow.com/questions/6554569/using-double-up-to-two-decimal-places">Using double up to two decimal places</a></p>

<p>but do not get solution so please any body can help me?</p>
