1 Reply Latest reply on Jun 23, 2009 1:42 AM by Richard_Abbott

    localize number format

    Magick9393 Level 1

      Hi all

       

      Can anyone help me out with how to localize the format of numbers?

       

      for example, some cultures use a "," as a thousand seperator, while others use a " " or ".".

       

      thanks in advance.

        • 1. Re: localize number format
          Richard_Abbott Level 3

          Magick9393,

          NumberFormatter has several different configuration properties, eg decimal and thousands separator character. I don't think there is any kind of property you can use just to set a localisation parameter, you have to do each one separately. You can set this up either in MXML eg

          <mxml:NumberFormatter decimalSeparatorTo="," />

          or in actionScript at run time eg

          var nf: NumberFormatter = new NumberFormatter();

          nf.decimalSeparatorTo = ","

           

          Richard