I'm not sure, offhand. So, I peaked at the source code, and discovered that FloatingDecimal is responsible for most of the nitty-gritty work of creating the
String. The details of the conversion was a bit more than I felt like digesting this afternoon.
You might want to take a look at the source code of the Double and FloatingDecimal classes. Note that the source code for most (and perhaps all) of the J2SE classes is usually included in a file named src.jar or src.zip in the J2SDK installation.
Of course, if you're trying to figure out a more consistent and controllable way of formatting the displaying of a double value, then I'd suggest taking a look at
the java.text.DecimalFormat class.
Good luck.
[ April 13, 2003: Message edited by: Dirk Schreckmann ]