Possible Duplicate:
Using double up to two decimal places
Hi i want to convert double value upto 6 point something like if value is
-1.00005522000
it should be converted and resulted into
-1.000055
i know there are lots of solution but still i could not getting the value
if i use value like
: -1.79769313486231E308
the resulted value become
-9.22337203668547
i have used reference like
http://www.roseindia.net/java/beginners/RoundTwoDecimalPlaces.shtml
How to print upto two decimal places in java using string builder?
Using double up to two decimal places
but do not get solution so please any body can help me?