PDA

View Full Version : number format function



Anonymous
08-19-2002, 10:46 AM
Hi,

I try to use the following pattern to format my numbers: "# ##0,00;-# ##0,00" It is not running fine :-( If i use the following us one: "#,##0.00;-#,##0.00" then everything is OK...

Any idea?

JMi

Anonymous
08-19-2002, 04:31 PM
Hi,

the ',' is not valid as decimal separator in number format strings. for a complete explaination of the syntax have a look at the Java-Doc of java.text.DecimalFormat.

In short: use the '.' as decimal sign, and if your locale is set correctly (in case the decimal separator is defined as ',', you should see a ',' instead of the '.' in the definition string.

Have more fun,
said Thomas

Anonymous
08-20-2002, 06:31 AM
Thanks Thomas :->