Re: double to String problem
There's lots of different ways to do it, but I've rounded Doubles to 4
significant figures with
private final double r4 = 10000d;
Double startx = new Double((double)Math.round(startPoint.x*r4)/r4);
Max Fedorov wrote in message <email@example.com>...
>I designed a reporting engine that calculats totals at the end, so I needed
>to convert double to String, in order to append it to a StringBuffer
>String text = new String().valueOf(double);
>StringBuffer strBuf = new StringBuffer();
>But after the convertion the value 6.20, for instance, becomes
>Do you have any suggestions?