Rajesh,
I think I misunderstood your question. I thought you just wanted to truncate the number. But when I read your question again, I realized you want to set the contents to a different number. Is that what you want to do?
ie., Double d = new Double(9.12345678)
and now, at some later point you want to set d to another number 9.12 ? Is that right??
If so, you can create another Double object with the desired value and simply assign it to d.
id., d = new Double( 30.789 )
Does that answer your question??
[This message has been edited by Ajith Kallambella (edited April 02, 2001).]