DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23064>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23064

The format-number() Function

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED



------- Additional Comments From [EMAIL PROTECTED]  2003-09-18 04:54 -------
I found another way to do the formatting in Java
(which generate the XML-file):

import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;

private static String formattedAbsoluteValue(double value)
{
          String pattern = "###,###,###,##0.00";
          DecimalFormatSymbols symbols = new DecimalFormatSymbols();
          symbols.setDecimalSeparator(',');
          symbols.setGroupingSeparator('.');
          DecimalFormat formatter = new DecimalFormat(pattern, symbols);
          formatter.setGroupingSize(3);
          return formatter.format(value);
}

Reply via email to