Hi,

by the way: If you don't like the grouping characters ('.' in "DE"-locale;
',' in "EN"-locale) why don't you use the 'groupingUsed' property of the
Format?

So, instead of your double replace() calls this should do the trick:
<code>
  var format_zahl = new qx.util.format.NumberFormat("de").set({
    minimumFractionDigits : 2,
    maximumFractionDigits : 2,
    groupingUsed          : false //[true|false]
  });
  var summe = 1231.23;
  // this should give "1231,22"
  var summe_str = format_zahl.format(summe);
</code>

...just in case you (or anybody else) missed this property ;)

/Peter

On 2010-12-13 15:15 [email protected] wrote:
> i try this
> 
> var format_zahl = new qx.util.format.NumberFormat("de");
> format_zahl.setMinimumFractionDigits(2);
>  format_zahl.setMaximumFractionDigits(2);
> 
> summe = format_zahl.format(summe).replace(",","").replace(".",",");
> 
> i alwys get the us format
> 
> 1,232.23
> 
>  but i need
> 
> 1.121,33 or 1231,22
> 
> why this setting dosent change it?

------------------------------------------------------------------------------
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages, 
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev 
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to