java: default number-formatting
<p>I have a program that does algorithmic calculations with some number-output. I want this output to look nice and the program still being fast. I used the DecumalFormat but this makes it so slow, but works.
Is there a way to set the default number output so I wouldnt need DecimalFormat???</p>

<pre><code>Locale deLocale = new Locale("de_DE");
// should be format:  ###,###.###    123.456,789     de_DE

Locale.setDefault (deLocale);

double f=-123456.123458998;
System.out.println (""+f+"");  // I wourld expect -123.456,123
// but the output is -123456.123458998
</code></pre>

<p>any ideas?? thanks!
chris</p>
